AliVCSDK  6.0.0
阿里云音视频SDK,为视频开发者提供一站式接入服务
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 support basic mode, push RTMP stream(rtmp://), or RTS stream(artc://)
Interactive SDK: support basic mode and interactive mode, push RTMP stream(rtmp://), or RTS stream(artc://), or interactive RTC stream(artc://live.aliyun.com)
Call Example
mAlivcLivePushConfig.setLivePushMode(AlivcLiveMode.AlivcLiveInteractiveMode);
AlivcLivePlayer livePlayer = new AlivcLivePlayerImpl(context, AlivcLiveMode.AlivcLiveInteractiveMode);
See also
com.alivc.live.pusher.AlivcLivePushConfig::setLivePushMode(AlivcLiveMode)
com.alivc.live.player.AlivcLivePlayerImpl
AliLive Push SDK Doc
AliLive Push SDK Interactive Doc
AliLive Push SDK License Doc

Definition at line 22 of file AlivcLiveMode.java.

Member Function Documentation

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

Get value of live mode

Returns
live mode value

Definition at line 59 of file AlivcLiveMode.java.

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

Get name of live mode

Returns
live mode name

Definition at line 68 of file AlivcLiveMode.java.

Member Data Documentation

com.alivc.live.annotations.AlivcLiveMode.AlivcLiveBasicMode =(0, "basic")

basic mode

Note
default mode
basic RTMP stream(rtmp://), or RTS stream(artc://)
Can not support real-time interactive stream, such as connecting to a microphone or PK.
If you don't have needs for interactive, such as a live broadcast, basic mode is recommended to you.

Definition at line 32 of file AlivcLiveMode.java.

com.alivc.live.annotations.AlivcLiveMode.AlivcLiveInteractiveMode =(1, "interactive")

interactive mode

Note
interactive RTC stream(artc://live.aliyun.com)
If you have needs for interactive, such as a live broadcast, please use it.

Definition at line 41 of file AlivcLiveMode.java.