updateRtmpTranscodingEx abstract method

Future<void> updateRtmpTranscodingEx({
  1. required LiveTranscoding transcoding,
  2. required RtcConnection connection,
})

Updates the transcoding configuration.

Agora recommends that you use the server-side Media Push function. After you start pushing media streams to CDN with transcoding, you can dynamically update the transcoding configuration according to the scenario. The SDK triggers the onTranscodingUpdated callback after the transcoding configuration is updated.

  • transcoding The transcoding configuration for Media Push. See LiveTranscoding.
  • connection The connection information. See RtcConnection.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> updateRtmpTranscodingEx(
    {required LiveTranscoding transcoding,
    required RtcConnection connection});