公共定义说明
版本:
HtSdk.VERSION
com.talkfun.sdk.consts.BroadcastCmdType 广播监听命令类型
static final String CHAT_SEND = "chat:send"
聊天
static final String CHAT_DISABLE = "chat:disable"
禁言
static final String CHAT_ENABLE = "chat:enable"
解除禁言
static final String CHAT_DISABLE_ALL = "chat:disable:all"
全体禁言
static final String QUESTION_ASK = "question:ask"
提问
static final String QUESTION_REPLY = "question:reply"
回复
static final String QUESTION_LIST = "question:list"
问答列表
static final String MEMBER_TOTAL = "member:total";
总人数
static final String MEMBER_FORCEOUT = "member:forceout";
用户被挤下线
static final String MEMBER_KICK = "member:kick";
被踢出房间
static final String ANNOUNCE_NOTICE = "announce:notice"
公告
static final String ANNOUNCE_ROLL = "announce:roll"
滚动通知
static final String LOTTERY_START = "lottery:start"
开始抽奖
static final String LOTTERY_STOP = "lottery:stop"
结束抽奖
static final String VOTE_NEW = "vote:new";
发起新投票
static final String VOTE_PUB = "vote:pub";
发布投票结果
static final String BROADCAST = "broadcast";
广播
static final String SIGN_NEW = "sign:new";
点名开始
static final String SIGN_END = "sign:end";
点名结束
static final String SIGN_IN = "sign:in"
签到
com.talkfun.sdk.consts.MemberRole 成员角色
//超级管理员(主播)
public static final String MEMBER_ROLE_SUPER_ADMIN = "spadmin";
//普通管理员 (助播)
public static final String MEMBER_ROLE_ADMIN = "admin";
//普通用户
public static final String MEMBER_ROLE_USER = "user";
//游客
public static final String MEMBER_ROLE_GUEST = "guest";
com.talkfun.sdk.module.VideoModeType
视频模式类型
/**摄像头视频类型*/
public static int CAMERA_MODE = 0;
/**桌面分享视频类型*/
public static int DESKTOP_MODE = 2;
/**
* RTC 视频类型
*/
public static int RTC_MODE = 3;
com.talkfun.sdk.consts.LiveStatus
直播状态
public static final String WAIT = "wait";//直播未开始
public static final String START = "start";//直播已开始
public static final String STOP = "stop";//直播已结束
com.talkfun.sdk.consts.TFMode
模式选择
public enum TFMode {
/**
* 直播默认模式
*/
LIVE_NORMAL,
/**
* 直播混合模式
*/
LIVE_MIX,
/**
* 直播小班模式
*/
LIVE_RTC,
/**
* 点播默认模式
*/
PLAYBACK_NORMAL
}