Live Mode.
More...
Live Mode.
- Author
- baorunchen
- Date
- 2022/7/20
- Note
- Basic SDK: Only supports basic mode, i.e. basic live streaming, with stream URL prefixes such as RTMP stream (rtmp://), RTS stream (artc://)
-
Interactive version SDK: supports basic and interactive modes, namely basic and interactive live streams, with stream URL prefixes such as RTMP stream (rtmp://), RTS stream (artc://), live streaming via microphone/PK real-time RTC stream (artc://live.aliyun.com)
- Call Example
-
- Note
- Push streaming client, please refer to the following interface settings:
com.alivc.live.pusher.AlivcLivePushConfig#setLivePushMode(com.alivc.live.annotations.AlivcLiveMode)
-
Pull streaming client, please refer to the following interface settings:
com.alivc.live.player.AlivcLivePlayer#AlivcLivePlayer(android.content.Context, com.alivc.live.annotations.AlivcLiveMode)
- See also
- AliLive Push SDK Doc
-
Interactive streaming
Definition at line 21 of file AlivcLiveMode.java.
◆ AlivcLiveMode()
com.alivc.live.annotations.AlivcLiveMode.AlivcLiveMode |
( |
int |
mode, |
|
|
String |
name |
|
) |
| |
◆ getMode()
int com.alivc.live.annotations.AlivcLiveMode.getMode |
( |
| ) |
|
◆ getName()
String com.alivc.live.annotations.AlivcLiveMode.getName |
( |
| ) |
|
◆ AlivcLiveBasicMode
com.alivc.live.annotations.AlivcLiveMode.AlivcLiveBasicMode =(0, "basic") |
basic mode
- Note
- default mode
-
Basic live streaming, regular RTMP and RTS streaming, does not support real-time interaction such as connecting to the microphone and PK
-
Can not support real-time interactive stream, such as connecting to a microphone or PK.
-
If there is no interactive demand for a live broadcast, it is recommended to use this mode
-
Stream URL prefixes such as RTMP stream (rtmp://), RTS stream (artc://)
- See also
- AliLive Push SDK Doc
Definition at line 32 of file AlivcLiveMode.java.
◆ AlivcLiveInteractiveMode
com.alivc.live.annotations.AlivcLiveMode.AlivcLiveInteractiveMode =(1, "interactive") |
interactive mode
- Note
- Interactive live streaming, supporting real-time interaction such as connected microphone and PK
-
If you have needs for interactive, such as a live broadcast, please use it.
-
Stream URL prefixes such as live streaming via microphone/PK real-time RTC streaming (artc://live.aliyun.com)
- Attention
- Please use 'AlivcRTC' as the log tag for autonomous troubleshooting when using interactive mode.
- See also
- Interactive streaming
Definition at line 43 of file AlivcLiveMode.java.