startPushSingleStreamToCDN abstract method
Future<int?>
startPushSingleStreamToCDN({
- required String taskId,
- required PushSingleStreamParam param,
- required RTCPushSingleStreamToCDNObserver observer,
This function is currently not available. Creates a new task of pushing a single media stream to CDN.
taskId
: Task ID.
You may want to start more than one task to push streams to CDN. When you do that, use different IDs for corresponding tasks; if you will start only one task, use an empty string.
param
: Configurations for pushing a single stream to CDN.
observer
: Register this observer to receive callbacks from the SDK.
Return value:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
Notes:
- After this API is called, the local user will receive RTCPushSingleStreamToCDNObserver.onStreamPushEvent about the result and errors during the pushing process.
- Call RTCVideo.stopPushStreamToCDN to stop the task.
Implementation
Future<int?> startPushSingleStreamToCDN({
required String taskId,
required PushSingleStreamParam param,
required RTCPushSingleStreamToCDNObserver observer,
});