NERtc Windows SDK  V4.6.0
Public 属性 | 所有成员列表
nertc::NERtcLiveStreamTaskOption结构体 参考

#include <nertc_engine_defines.h>

Public 属性

char task_id [kNERtcMaxTaskIDLength]
 
char stream_url [kNERtcMaxURILength]
 
bool server_record_enabled
 
NERtcLiveStreamLayoutMode layout_mode
 
uid_t main_picture_account_id
 
char layout_parameters [kNERtcMaxBuffLength]
 

详细描述

直播推流任务的配置项。

类成员变量说明

◆ layout_mode

NERtcLiveStreamLayoutMode nertc::NERtcLiveStreamTaskOption::layout_mode

连麦方式,默认值为 kNERtcLayoutFloatingRightVertical。

◆ layout_parameters

char nertc::NERtcLiveStreamTaskOption::layout_parameters[kNERtcMaxBuffLength]

自定义布局参数(选填),JSON 字符串格式, 只有当layout_mode为 kNERtcLayoutCustom 或 kNERtcLayoutAudioOnly时才需要设置。

◆ main_picture_account_id

uid_t nertc::NERtcLiveStreamTaskOption::main_picture_account_id

指定大画面uid(选填)。

◆ server_record_enabled

bool nertc::NERtcLiveStreamTaskOption::server_record_enabled

服务器录制功能是否开启,默认值为 false。

◆ stream_url

char nertc::NERtcLiveStreamTaskOption::stream_url[kNERtcMaxURILength]

直播推流地址。

◆ task_id

char nertc::NERtcLiveStreamTaskOption::task_id[kNERtcMaxTaskIDLength]

推流任务ID,为推流任务的唯一标识,用于过程中增删任务操作。


该结构体的文档由以下文件生成: