public enum AlivcLiveMode extends java.lang.Enum<AlivcLiveMode>
基础版SDK:只支持基础模式,即推送RTMP流(rtmp://)、RTS流(artc://)
,
推流SDK(新版)官网文档
互动版SDK:支持基础模式、互动模式,即推送RTMP流(rtmp://)、RTS流(artc://)、直播连麦PK实时RTC流(artc://)
Enum Constant and Description |
---|
AlivcLiveBasicMode
基础模式(默认模式)
常规的RTMP推流、RTS推流,不支持连麦、PK等实时互动;
如果一场直播没有互动需求,建议使用该模式;
|
AlivcLiveInteractiveMode
互动模式
支持连麦、PK等实时互动;
如果一场直播有互动需求,建议使用该模式;
|
Modifier and Type | Method and Description |
---|---|
int |
getMode()
获取推拉流模式枚举值
|
static AlivcLiveMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AlivcLiveMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlivcLiveMode AlivcLiveBasicMode
public static final AlivcLiveMode AlivcLiveInteractiveMode
public static AlivcLiveMode[] values()
for (AlivcLiveMode c : AlivcLiveMode.values()) System.out.println(c);
public static AlivcLiveMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getMode()