removeLiveStreamTask method
删除房间推流任务。通话中有效
taskId
直播任务id
DeleteLiveTaskCallback 操作结果回调,方法调用成功才有回调
Implementation
Future<int> removeLiveStreamTask(
String taskId, DeleteLiveTaskCallback? callback) async {
int serial = -1;
if (callback != null) {
serial = _onceEventHandler.addOnceCallback((args) {
callback(args['taskId'], args['errCode']);
});
}
IntValue reply =
await _api.removeLiveStreamTask(DeleteLiveStreamTaskRequest()
..serial = serial
..taskId = taskId);
return reply.value ?? -1;
}