AliVCSDK 6.17.0
阿里云音视频SDK,为视频开发者提供一站式接入服务
 
Loading...
Searching...
No Matches
com.alivc.live.annotations.AlivcLiveMode Enum Reference

Live Mode. More...

Public Member Functions

 AlivcLiveMode (int mode, String name)
 
int getMode ()
 
String getName ()
 

Public Attributes

 AlivcLiveBasicMode =(0, "basic")
 
 AlivcLiveInteractiveMode =(1, "interactive")
 

Detailed Description

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
AlivcLivePlayer livePlayer = new AlivcLivePlayerImpl(context, AlivcLiveMode.AlivcLiveInteractiveMode);
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.

Constructor & Destructor Documentation

◆ AlivcLiveMode()

com.alivc.live.annotations.AlivcLiveMode.AlivcLiveMode ( int  mode,
String  name 
)

Definition at line 51 of file AlivcLiveMode.java.

Member Function Documentation

◆ getMode()

int com.alivc.live.annotations.AlivcLiveMode.getMode ( )

Get value of live mode

Returns
live mode value

Definition at line 61 of file AlivcLiveMode.java.

◆ getName()

String com.alivc.live.annotations.AlivcLiveMode.getName ( )

Get name of live mode

Returns
live mode name

Definition at line 70 of file AlivcLiveMode.java.

Member Data Documentation

◆ 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.