setLiveTranscoding

Sets the transcoding configurations for media push.

Future<void> setLiveTranscoding(LiveTranscoding transcoding);
Deprecated:
This method is deprecated.

This method sets the video layout and audio settings for CDN live streaming. The SDK triggers the transcodingUpdated callback when you call this method to update the transcoding setting.

Attention:
  • This method takes effect only when you are a host in live interactive streaming.
  • Ensure that you enable the Media Push service before using this function. See Prerequisites in the advanced guide Media Push.
  • If you call this method to set the transcoding configuration for the first time, the SDK does not trigger the transcodingUpdated callback.
  • Call this method after joining a channel.
  • Agora only supports pushing media streams to the CDN in RTMPS protocol when you enable transcoding.

Parameters

transcoding

The transcoding configurations for the media push. See LiveTranscoding for details.