AVDStreamExporter Class Reference

Inherits from AVDModule : NSObject
Declared in AVDStreamExporter.h
AVDStreamExporter.mm

+ getExporter:

获取录制功能模块

+ (AVDStreamExporter *)getExporter:(AVDRoom *)room

Parameters

room

room对象

Return Value

录制模块对象

Discussion

获取录制功能模块

Declared In

AVDStreamExporter.h

– createLocalRecorder:filePath:viewInfo:

创建一个本地录制

- (AVDResult)createLocalRecorder:(NSString *)eId filePath:(NSString *)filePath viewInfo:(AVDExporterViewInfo *)viewInfo

Parameters

eId

录制id

filePath

文件路径

viewInfo

混流信息

Return Value

错误代码

Discussion

创建一个本地录制

Declared In

AVDStreamExporter.h

– createLocalRealtimeRecorder:filePath:viewInfo:

创建本地实时录制

- (AVDResult)createLocalRealtimeRecorder:(NSString *)eId filePath:(NSString *)filePath viewInfo:(AVDExporterViewInfo *)viewInfo

Parameters

eId

录制id

filePath

文件路径

viewInfo

混流信息

Return Value

错误代码

Discussion

创建本地实时录制

Declared In

AVDStreamExporter.h

– createLocalLivecast:pushUrl:viewInfo:

创建本地直播

- (AVDResult)createLocalLivecast:(NSString *)eId pushUrl:(NSString *)pushUrl viewInfo:(AVDExporterViewInfo *)viewInfo

Parameters

eId

直播id

pushUrl

推流地址

viewInfo

混流信息

Return Value

错误代码

Discussion

创建本地直播

Declared In

AVDStreamExporter.h

– createServerRecorder:filePath:viewInfo:block:

创建云端录制

- (AVDResult)createServerRecorder:(NSString *)eId filePath:(NSString *)filePath viewInfo:(AVDExporterViewInfo *)viewInfo block:(void ( ^ ) ( AVDResult result , AVDExporterInfo *exporterInfo ))block

Parameters

eId

录制id

filePath

文件路径

viewInfo

混流信息

block

回调

Return Value

错误代码

Discussion

创建云端录制

Declared In

AVDStreamExporter.h

– createServerRealtimeRecorder:filePath:viewInfo:block:

创建云端实时录制

- (AVDResult)createServerRealtimeRecorder:(NSString *)eId filePath:(NSString *)filePath viewInfo:(AVDExporterViewInfo *)viewInfo block:(void ( ^ ) ( AVDResult result , AVDExporterInfo *exporterInfo ))block

Parameters

eId

录制id

filePath

文件路径

viewInfo

混流信息

block

回调

Return Value

错误代码

Discussion

创建云端实时录制

Declared In

AVDStreamExporter.h

– createServerLivecast:pushUrl:liveName:viewInfo:block:

创建云端直播

- (AVDResult)createServerLivecast:(NSString *)eId pushUrl:(NSString *)pushUrl liveName:(NSString *)liveName viewInfo:(AVDExporterViewInfo *)viewInfo block:(void ( ^ ) ( AVDResult result , AVDExporterInfo *exporterInfo ))block

Parameters

eId

直播id

pushUrl

推流地址

liveName

直播名字

viewInfo

混流信息

block

回调

Return Value

错误代码

Discussion

创建云端直播

Declared In

AVDStreamExporter.h

– updateExporterInfo:appData:

更新导出信息

- (AVDResult)updateExporterInfo:(NSString *)eId appData:(NSString *)appData

Parameters

eId

录制/直播id

appData

json数据

Return Value

错误代码

Discussion

更新导出信息

Declared In

AVDStreamExporter.h

– selectAudio4Exporter:audioUserId:

选择一个音频

- (AVDResult)selectAudio4Exporter:(NSString *)eId audioUserId:(AVDUserId)userId

Parameters

eId

录制/直播id

userId

userid

Return Value

错误代码

Discussion

选择一个音频

Declared In

AVDStreamExporter.h

– selectSingleVideo4Exporter:videoId:

选择一个视频

- (AVDResult)selectSingleVideo4Exporter:(NSString *)eId videoId:(AVDDeviceId)videoId

Parameters

eId

录制/直播id

videoId

视频id

Return Value

错误代码

Discussion

选择一个视频

Declared In

AVDStreamExporter.h

– selectMixedVideos4Exporter:mixedVideos:

选择多个视频

- (AVDResult)selectMixedVideos4Exporter:(NSString *)eId mixedVideos:(NSArray *)videos

Parameters

eId

录制/直播id

videos

视频数组

Return Value

错误代码

Discussion

选择多个视频

Declared In

AVDStreamExporter.h

– getVideoMixer:

获取混频布局模块

- (AVDExporterVideoMixer *)getVideoMixer:(NSString *)eId

Parameters

eId

录制/直播id

Return Value

混频布局模块

Discussion

获取混频布局模块

Declared In

AVDStreamExporter.h

– pauseResume:isResume:

暂停录制/直播

- (AVDResult)pauseResume:(NSString *)eId isResume:(BOOL)isResume

Parameters

eId

录制/直播id

isResume

是否重新开始

Return Value

错误代码

Discussion

暂停录制/直播

Declared In

AVDStreamExporter.h

– stopExporter:

停止导出

- (AVDResult)stopExporter:(NSString *)eId

Parameters

eId

录制/直播id

Return Value

错误代码

Discussion

停止导出

Declared In

AVDStreamExporter.h

– stopExporterAll

停止所有导出

- (AVDResult)stopExporterAll

Return Value

错误代码

Discussion

停止所有导出

Declared In

AVDStreamExporter.h

– getExporterInfo:

获取指定导出信息

- (AVDResult)getExporterInfo:(NSString *)eId

Parameters

eId

录制/直播id

Return Value

错误代码

Discussion

获取指定导出信息

Declared In

AVDStreamExporter.h

– findExporterInfos:beginIndex:count:filter:

callid

- (AVDResult)findExporterInfos:(NSInteger)callId beginIndex:(NSInteger)begindex count:(NSInteger)count filter:(NSString *)filter

Parameters

callId

callid

begindex

开始位置

count

个数

filter

filyter

Return Value

错误代码

Declared In

AVDStreamExporter.h