startLiveTranscoding abstract method
- @Deprecated('Deprecated since v3.54.1, use startPushMixedStreamToCDN instead')
- required String taskId,
- required LiveTranscoding transcoding,
- required RTCLiveTranscodingObserver observer,
Creates a new task of pushing media streams to CDN and sets the relevant configurations.
When pushing more than one live streams in the same task, SDK will first mix those streams into one single stream and then push it to CDN.
taskId
: Task ID.
You may want to push more than one mixed stream to CDN from the same room. When you do that, use different ID for corresponding tasks; if you will start only one task, use an empty string.
transcoding
: Configurations to be set when pushing streams 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 RTCLiveTranscodingObserver.onStreamMixingEvent about the result and errors during the pushing process.
- Call RTCVideo.stopLiveTranscoding to stop pushing streams to CDN.
Implementation
@Deprecated('Deprecated since v3.54.1, use startPushMixedStreamToCDN instead')
Future<int?> startLiveTranscoding({
required String taskId,
required LiveTranscoding transcoding,
required RTCLiveTranscodingObserver observer,
});