NERoomLiveController
@objcMembers
public class NERoomLiveController : NSObject, NEBaseController
直播控制器
-
功能是否支持
Declaration
Swift
public var isSupported: Bool { get }
-
开启直播
Declaration
Swift
public func startLive(request: NERoomLiveRequest, callback: NECallback<NERoomLiveInfo>? = nil)
Parameters
request
直播请求参数
callback
回调 包含直播信息
-
结束直播
Declaration
Swift
public func stopLive(callback: NECallback<AnyObject>? = nil)
Parameters
callback
回调
-
修改直播
Declaration
Swift
public func updateLive(request: NERoomLiveRequest, callback: NECallback<NERoomLiveInfo>? = nil)
Parameters
request
请求参数
callback
回调
-
添加推流任务
Declaration
Swift
public func addLiveStreamTask(task: NERoomLiveStreamTaskInfo, callback: NECallback<AnyObject>? = nil)
Parameters
task
推流任务
callback
回调闭包
-
更新推流任务
Declaration
Swift
public func updateLiveStreamTask(task: NERoomLiveStreamTaskInfo, callback: NECallback<AnyObject>? = nil)
Parameters
task
推流任务
callback
更新结果回调
-
移除推流任务
Declaration
Swift
public func removeLiveStreamTask(taskId: String, callback: NECallback<AnyObject>? = nil)
Parameters
taskId
推流任务ID
callback
删除结果回调
-
获取直播信息
Declaration
Swift
public func getLiveInfo() -> NERoomLiveInfo?
Return Value
直播信息对象