You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**The transcodingUser class which defines the video properties of the user displaying the
245
-
* video in the CDN live. Agora supports a maximum of 17 transcoding users in a CDN live streaming channel.
246
-
* See <a href="https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1live_1_1_live_transcoding_1_1_transcoding_user.html"></a>*/
* Ensure that you enable the RTMP Converter service before using this function. See
270
-
* Prerequisites in Push Streams to CDN.
271
-
* Ensure that you call the setClientRole method and set the user role as the host.
272
-
* Ensure that you call the setLiveTranscoding method before calling the addPublishStreamUrl method.*/
273
-
engine.setLiveTranscoding(transcoding);
239
+
if (transCodeSwitch.isChecked()) {
240
+
/**LiveTranscoding: A class for managing user-specific CDN live audio/video transcoding settings.
241
+
* See <a href="https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1live_1_1_live_transcoding.html"></a>*/
242
+
transcoding.width = dimensions.height;
243
+
transcoding.height = dimensions.width;
244
+
/**The transcodingUser class which defines the video properties of the user displaying the
245
+
* video in the CDN live. Agora supports a maximum of 17 transcoding users in a CDN live streaming channel.
246
+
* See <a href="https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1live_1_1_live_transcoding_1_1_transcoding_user.html"></a>*/
0 commit comments