setLiveTranscoding abstract method

Future<void> setLiveTranscoding(
  1. LiveTranscoding transcoding
)

Sets the transcoding configurations for media push. 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. Deprecated: This method is 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.

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

Implementation

Future<void> setLiveTranscoding(LiveTranscoding transcoding);