updateRtmpTranscoding abstract method

Future<void> updateRtmpTranscoding(
  1. LiveTranscoding transcoding
)

Updates the RTMP transcoding configuration.

Agora recommends using the more comprehensive server-side streaming feature. See Implement Server-Side RTMP Streaming. After enabling transcoding streaming, you can dynamically update the transcoding configuration based on your scenario needs. After the transcoding configuration is updated, the SDK triggers the onTranscodingUpdated callback.

  • transcoding The transcoding configuration for RTMP streaming. See LiveTranscoding.

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. See Error Codes for details and resolution suggestions.

Implementation

Future<void> updateRtmpTranscoding(LiveTranscoding transcoding);