11#ifndef LIVE_CTRL_INTERFACE_H
12#define LIVE_CTRL_INTERFACE_H
virtual void updateBackgroundInfo(const NERoomLiveBackgroundParam &info, const NEUpdateLiveBackgroundCallback &callback)=0
更新直播背景信息
NECallback< NERoomLiveBackgroundInfo > NEGetLiveBackgroundInfoCallback
NEStartLiveCallback NEStopLiveCallback
NECallback< time_t > NEUpdateLiveBackgroundCallback
virtual void getBackgroundInfo(const NEGetLiveBackgroundInfoCallback &callback) const =0
获取直播背景信息
virtual void updateLiveStreamTask(const NERoomLiveStreamTaskInfo &taskInfo, const NEEmptyCallback &callback)=0
更新房间推流任务
virtual NERoomLiveInfo getLiveInfo()=0
获取当前直播信息
virtual ~INERoomLiveController()=default
析构函数
virtual void updateLive(const NERoomLiveRequest &live, const NEUpdateLiveCallback &callback)=0
更新直播
virtual void startLive(const NERoomLiveRequest &live, const NECallback< NERoomLiveInfo > &callback)=0
开始直播
NECallback<> NEStartLiveCallback
NEStartLiveCallback NEUpdateLiveCallback
virtual void removeLiveStreamTask(const std::string &taskId, const NEEmptyCallback &callback)=0
删除房间推流任务
virtual void addLiveStreamTask(const NERoomLiveStreamTaskInfo &taskInfo, const NEEmptyCallback &callback)=0
添加房间推流任务
virtual void stopLive(const NEStopLiveCallback &callback)=0
停止直播
enum neroom::tagNERoomLiveStreamAudioSampleRate NERoomLiveStreamAudioSampleRate
音频推流采样率
struct neroom::tagNERoomLiveConfig NERoomLiveConfig
推流任务信息
enum neroom::tagNERoomLiveStreamAudioCodecProfile NERoomLiveStreamAudioCodecProfile
音频编码规格
tagNERoomLiveStreamVideoScaleMode
直播推流视频和画布的调节属性
struct tagNERoomLiveInfo :NERoomLiveRequest { std::string taskId; std::string pushUrl; std::string pullHlsUrl; std::string pullHttpUrl; std::string pullRtmpUrl; std::string pullRtsUrl; NERoomLiveState state=kNERoomLiveStateInvalid; } NERoomLiveInfo
直播信息
struct neroom::tagNERoomLiveStreamLayout NERoomLiveStreamLayout
enum neroom::tagNERoomLiveStreamMode NERoomLiveStreamMode
直播推流模式
struct neroom::tagNERoomLiveStreamUserTranscoding NERoomLiveStreamUserTranscoding
直播成员布局
enum neroom::tagNERoomLiveStreamVideoScaleMode NERoomLiveStreamVideoScaleMode
直播推流视频和画布的调节属性
std::function< void(int, const std::string &, const TResultParam &...)> NECallback
通用回调
struct neroom::tagNERoomLiveStreamImageInfo NERoomLiveStreamImageInfo
图片布局
tagNERoomLiveStreamMode
直播推流模式
tagNERoomLiveStreamAudioCodecProfile
音频编码规格
struct tagNERoomLiveRequest { std::string title; std::string password; NERoomLiveLayout liveLayout=kNERoomLiveLayoutNone; std::vector< std::string > userUuidList; std::string extentionConfig; bool enableThirdParties=false; } NERoomLiveRequest
直播基础信息
NECallback<> NEEmptyCallback
struct neroom::tagNERoomLiveStreamTaskInfo NERoomLiveStreamTaskInfo
推流任务信息
tagNERoomLiveStreamAudioSampleRate
音频推流采样率
bool singleVideoPassThrough
NERoomLiveStreamAudioCodecProfile audioCodecProfile
NERoomLiveStreamAudioSampleRate sampleRate
std::vector< NERoomLiveStreamUserTranscoding > userTranscodingList
NERoomLiveStreamImageInfo * backgroundImg
NERoomLiveStreamLayout layout
NERoomLiveStreamMode mode
NERoomLiveStreamVideoScaleMode adaption