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

Live Mode. More...

Public Member Functions

 AlivcLiveMode (int value)
 
int getMode ()
 

Public Attributes

 AlivcLiveBasicMode =(0)
 
 AlivcLiveInteractiveMode =(1)
 

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 56 of file AlivcLiveMode.java.

Member Data Documentation

com.alivc.live.annotations.AlivcLiveMode.AlivcLiveBasicMode =(0)

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