|
Agora Java API Reference for Android
|
The channel media options. More...
Public Member Functions | |
| ChannelMediaOptions (Integer clientRoleType) | |
| Boolean | isPublishCameraTrack () |
| Boolean | isPublishSecondaryCameraTrack () |
| Boolean | isPublishThirdCameraTrack () |
| Boolean | isPublishFourthCameraTrack () |
| Boolean | isPublishScreenCaptureVideo () |
| Boolean | isPublishScreenCaptureAudio () |
| Boolean | isPublishCustomAudioTrack () |
| Boolean | isPublishCustomVideoTrack () |
| Boolean | isPublishEncodedVideoTrack () |
| Boolean | isPublishMediaPlayerAudioTrack () |
| Boolean | isPublishMediaPlayerVideoTrack () |
| Boolean | isPublishTranscodedVideoTrack () |
| Boolean | isPublishMixedAudioTrack () |
| Boolean | isPublishLipSyncTrack () |
| Integer | getPublishMediaPlayerId () |
| Boolean | isPublishMicrophoneTrack () |
| Boolean | isAutoSubscribeAudio () |
| Boolean | isAutoSubscribeVideo () |
| Boolean | isStartPreview () |
| Boolean | isEnableAudioRecordingOrPlayout () |
| Integer | getClientRoleType () |
| Integer | getAudienceLatencyLevel () |
| Integer | getDefaultVideoStreamType () |
| Integer | getChannelProfile () |
| Integer | getAudioDelayMs () |
| Integer | getMediaPlayerAudioDelayMs () |
| String | getToken () |
| Boolean | isEnableBuiltInMediaEncryption () |
| Boolean | getPublishRhythmPlayerTrack () |
| Boolean | getIsAudioFilterable () |
| Integer | getPublishCustomAudioTrackId () |
| Integer | getCustomVideoTrackId () |
| Boolean | isInteractiveAudience () |
| String | getParameters () |
| Boolean | isEnableMultipath () |
| Integer | getUplinkMultipathMode () |
| Integer | getDownlinkMultipathMode () |
| Integer | getPreferMultipathType () |
| String | toString () |
The channel media options.
Agora supports publishing multiple audio streams and one video stream at the same time and in the same RtcConnection. For example, publishMicrophoneTrack, publishCustomAudioTrack, and publishMediaPlayerAudioTrack can be set as true at the same time, but only one of publishCameraTrack, publishScreenCaptureVideo, publishCustomVideoTrack, or publishEncodedVideoTrack can be set as true.
| Boolean io.agora.rtc2.ChannelMediaOptions.publishCameraTrack |
Whether to publish the video captured by the camera:
true: Publish the video captured by the camera.false: Do not publish the video captured by the camera. | Boolean io.agora.rtc2.ChannelMediaOptions.publishSecondaryCameraTrack |
Determines whether to publish the video of the secondary camera track.
| Boolean io.agora.rtc2.ChannelMediaOptions.publishThirdCameraTrack |
Whether to publish the video captured by the third camera:
true: Publish the video captured by the third camera.false: Do not publish the video captured by the third camera. | Boolean io.agora.rtc2.ChannelMediaOptions.publishFourthCameraTrack |
Whether to publish the video captured by the fourth camera:
true: Publish the video captured by the fourth camera.false: Do not publish the video captured by the fourth camera. | Boolean io.agora.rtc2.ChannelMediaOptions.publishMicrophoneTrack |
Whether to publish the audio captured by the microphone:
true: Publish the audio captured by the microphone.false: Do not publish the audio captured by the microphone. | Boolean io.agora.rtc2.ChannelMediaOptions.publishScreenCaptureVideo |
Whether to publish the video captured from the screen:
true: Publish the video captured from the screen.false: Do not publish the video captured from the screen. publishScreenTrack to publishScreenCaptureVideo. | Boolean io.agora.rtc2.ChannelMediaOptions.publishScreenCaptureAudio |
Whether to publish the audio captured from the screen:
true: Publish the audio captured from the screen.false: Publish the audio captured from the screen. | Boolean io.agora.rtc2.ChannelMediaOptions.publishCustomAudioTrack |
Whether to publish the audio captured from a custom source:
true: Publish the audio captured from the custom source.false: Do not publish the captured audio from a custom source. | Integer io.agora.rtc2.ChannelMediaOptions.publishCustomAudioTrackId |
The ID of the custom audio track to be published. The default value is 0. You can obtain the custom audio track ID through the createCustomAudioTrack method.
| Boolean io.agora.rtc2.ChannelMediaOptions.publishCustomVideoTrack |
Whether to publish the video captured from a custom source:
true: Publish the video captured from the custom source.false: Do not publish the captured video from a custom source. | Boolean io.agora.rtc2.ChannelMediaOptions.publishEncodedVideoTrack |
Whether to publish the encoded video:
true: Publish the encoded video.false: Do not publish the encoded video. | Boolean io.agora.rtc2.ChannelMediaOptions.publishMediaPlayerAudioTrack |
Whether to publish the audio from the media player:
true: Publish the audio from the media player.false: Do not publish the audio from the media player. | Boolean io.agora.rtc2.ChannelMediaOptions.publishMediaPlayerVideoTrack |
Whether to publish the video from the media player:
true: Publish the video from the media player.false: Do not publish the video from the media player. | Boolean io.agora.rtc2.ChannelMediaOptions.publishTranscodedVideoTrack |
Whether to publish the local transcoded video track.
true: Publish the video track of local transcoded video track.false: (Default) Do not publish the local transcoded video track. | Boolean io.agora.rtc2.ChannelMediaOptions.publishMixedAudioTrack |
Whether to publish the mixed audio track:
true: Publish the mixed audio track.false: Do not publish the mixed audio track. | Boolean io.agora.rtc2.ChannelMediaOptions.publishLipSyncTrack |
Whether to publish the video track processed by the speech driven extension:
true: Publish the video track processed by the speech driven extension.false: (Default) Do not publish the video track processed by the speech driven extension. | Boolean io.agora.rtc2.ChannelMediaOptions.autoSubscribeAudio |
Whether to automatically subscribe to all remote audio streams when the user joins a channel:
true: Subscribe to all remote audio streams.false: Do not automatically subscribe to any remote audio streams. | Boolean io.agora.rtc2.ChannelMediaOptions.autoSubscribeVideo |
Whether to automatically subscribe to all remote video streams when the user joins the channel:
true: Subscribe to all remote video streams.false: Do not automatically subscribe to any remote video streams. | Boolean io.agora.rtc2.ChannelMediaOptions.enableAudioRecordingOrPlayout |
Whether to enable audio capturing or playback:
true: Enable audio capturing or playback.false: Do not enable audio capturing or playback. true. | Integer io.agora.rtc2.ChannelMediaOptions.publishMediaPlayerId |
The ID of the media player to be published. The default value is 0.
| Integer io.agora.rtc2.ChannelMediaOptions.clientRoleType |
The user role:
| Integer io.agora.rtc2.ChannelMediaOptions.audienceLatencyLevel |
The latency level of an audience member in interactive live streaming.
| Integer io.agora.rtc2.ChannelMediaOptions.defaultVideoStreamType |
The default video-stream type:
| Integer io.agora.rtc2.ChannelMediaOptions.channelProfile |
The channel profile.
| Integer io.agora.rtc2.ChannelMediaOptions.audioDelayMs |
Delay (in milliseconds) for sending audio frames. You can use this parameter to set the delay of the audio frames that need to be sent, to ensure audio and video synchronization. To switch off the delay, set the value to 0.
| Integer io.agora.rtc2.ChannelMediaOptions.mediaPlayerAudioDelayMs |
The delay in ms for sending media player audio frames. This is used for explicit control of A/V sync. To switch off the delay, set the value to zero.
| String io.agora.rtc2.ChannelMediaOptions.token |
(Optional) The token generated on your server for authentication.
updateChannelMediaOptions or updateChannelMediaOptionsEx.create(RtcEngineConfig config) method for initializing the RTC engine, and those used by the joinChannel(String token, String channelId, int uid, ChannelMediaOptions options) and joinChannelEx methods for joining the channel. | Boolean io.agora.rtc2.ChannelMediaOptions.enableBuiltInMediaEncryption |
Enable media packet encryption. It will be ignored when calling function updateChannelMediaOptions().
| Boolean io.agora.rtc2.ChannelMediaOptions.publishRhythmPlayerTrack |
Whether to publish the sound of a metronome to remote users:
true: Publish processed audio frames. Both the local user and remote users can hear the metronome.false: Do not publish the sound of the metronome. Only the local user can hear the metronome. | Boolean io.agora.rtc2.ChannelMediaOptions.isInteractiveAudience |
Whether to enable interactive mode:
true: Enable interactive mode. Once this mode is enabled and the user role is set as audience, the user can receive remote video streams with low latency.false:Do not enable interactive mode. If this mode is disabled, the user receives the remote video streams in default settings. joinChannelEx method to join the other host's channel as an audience member, and set isInteractiveAudience to true.CLIENT_ROLE_AUDIENCE. | Integer io.agora.rtc2.ChannelMediaOptions.customVideoTrackId |
The video track ID returned by calling the createCustomVideoTrack method. The default value is 0.
| Boolean io.agora.rtc2.ChannelMediaOptions.isAudioFilterable |
Whether the audio stream being published is filtered according to the volume algorithm:
true: The audio stream is filtered. If the audio stream filter is not enabled, this setting does not takes effect.false: The audio stream is not filtered. support@agora.io. | Boolean io.agora.rtc2.ChannelMediaOptions.startPreview |
Determines whether to start preview when join channel if canvas have been set.
| String io.agora.rtc2.ChannelMediaOptions.parameters |
Provides the technical preview functionalities or special customizations by configuring the SDK with JSON options. @technical preview
| Boolean io.agora.rtc2.ChannelMediaOptions.enableMultipath |
Whether to enable multiple transmisssion paths:
true: Enable multiple transmisssion path.false: Dsiable multiple transmisssion path. | Integer io.agora.rtc2.ChannelMediaOptions.uplinkMultipathMode |
Uplink transmission mode. See MultipathMode.
enableMultipath is set to true. | Integer io.agora.rtc2.ChannelMediaOptions.downlinkMultipathMode |
Downlink transmission mode. See MultipathMode.
enableMultipath is set to true. | Integer io.agora.rtc2.ChannelMediaOptions.preferMultipathType |
Preferred type of transmission path. See MultipathType.
enableMultipath is set to true.
1.8.18