|
Agora Java API Reference for Android
|
The channel media options. More...
#include <IAgoraRtcEngine.h>
Public Member Functions | |
| void | SetAll (const ChannelMediaOptions &change) |
| bool | operator== (const ChannelMediaOptions &o) const |
| ChannelMediaOptions & | operator= (const ChannelMediaOptions &replace) |
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, publishScreenTrack, publishCustomVideoTrack, or publishEncodedVideoTrack can be set as true.
| Optional<bool> agora::rtc::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. | Optional<bool> agora::rtc::ChannelMediaOptions::publishSecondaryCameraTrack |
Whether to publish the video captured by the second camera:
true: Publish the video captured by the second camera.false: Do not publish the video captured by the second camera. | Optional<bool> agora::rtc::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. | Optional<bool> agora::rtc::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. | Optional<bool> agora::rtc::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. | Optional<bool> agora::rtc::ChannelMediaOptions::publishScreenTrack |
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. | Optional<bool> agora::rtc::ChannelMediaOptions::publishSecondaryScreenTrack |
Whether to publish the video captured from the second screen:
true: Publish the video captured from the second screen.false: Do not publish the video captured from the second screen. | Optional<bool> agora::rtc::ChannelMediaOptions::publishThirdScreenTrack |
Whether to publish the video captured from the third screen:
true: Publish the captured video from the third screen.false: Do not publish the video captured from the third screen. | Optional<bool> agora::rtc::ChannelMediaOptions::publishFourthScreenTrack |
Whether to publish the video captured from the fourth screen:
true: Publish the captured video from the fourth screen.false: Do not publish the video captured from the fourth screen. | Optional<bool> agora::rtc::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. | Optional<int> agora::rtc::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.
| Optional<bool> agora::rtc::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. | Optional<bool> agora::rtc::ChannelMediaOptions::publishEncodedVideoTrack |
Whether to publish the encoded video:
true: Publish the encoded video.false: Do not publish the encoded video. | Optional<bool> agora::rtc::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. | Optional<bool> agora::rtc::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. | Optional<bool> agora::rtc::ChannelMediaOptions::publishTranscodedVideoTrack |
Whether to publish the local transcoded video:
true: Publish the local transcoded video.false: Do not publish the local transcoded video. publishTrancodedVideoTrack to publishTranscodedVideoTrack. | Optional<bool> agora::rtc::ChannelMediaOptions::publishMixedAudioTrack |
Whether to publish the mixed audio track:
true: Publish the mixed audio track.false: Do not publish the mixed audio track. | Optional<bool> agora::rtc::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. | Optional<bool> agora::rtc::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. | Optional<bool> agora::rtc::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. | Optional<bool> agora::rtc::ChannelMediaOptions::enableAudioRecordingOrPlayout |
Whether to enable audio capturing or playback:
true: Enable audio capturing or playback.false: Do not enable audio capturing or playback. true. | Optional<int> agora::rtc::ChannelMediaOptions::publishMediaPlayerId |
The ID of the media player to be published. The default value is 0.
| Optional<CLIENT_ROLE_TYPE> agora::rtc::ChannelMediaOptions::clientRoleType |
The user role. See CLIENT_ROLE_TYPE.
| Optional<AUDIENCE_LATENCY_LEVEL_TYPE> agora::rtc::ChannelMediaOptions::audienceLatencyLevel |
The latency level of an audience member in interactive live streaming. See AUDIENCE_LATENCY_LEVEL_TYPE.
| Optional<VIDEO_STREAM_TYPE> agora::rtc::ChannelMediaOptions::defaultVideoStreamType |
The default video-stream type. See VIDEO_STREAM_TYPE.
| Optional<CHANNEL_PROFILE_TYPE> agora::rtc::ChannelMediaOptions::channelProfile |
The channel profile. See CHANNEL_PROFILE_TYPE.
| Optional<int> agora::rtc::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.
| Optional<int> agora::rtc::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.
| Optional<const char*> agora::rtc::ChannelMediaOptions::token |
(Optional) The token generated on your server for authentication. See .
updateChannelMediaOptions or updateChannelMediaOptionsEx.initialize method for initializing the RTC engine, and those used by the joinChannel(const char* token, const char* channelId, uid_t uid, const ChannelMediaOptions& options) and joinChannelEx methods for joining the channel. | Optional<bool> agora::rtc::ChannelMediaOptions::enableBuiltInMediaEncryption |
Whether to enable media packet encryption:
true: Yes.false: (Default) No.updateChannelMediaOptions. | Optional<bool> agora::rtc::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. | Optional<bool> agora::rtc::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. | Optional<video_track_id_t> agora::rtc::ChannelMediaOptions::customVideoTrackId |
The video track ID returned by calling the createCustomVideoTrack method. The default value is 0.
| Optional<bool> agora::rtc::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. | Optional<const char*> agora::rtc::ChannelMediaOptions::parameters |
Provides the technical preview functionalities or special customizations by configuring the SDK with JSON options. Pointer to the set parameters in a JSON string. @technical preview
| Optional<bool> agora::rtc::ChannelMediaOptions::enableMultipath |
Whether to enable multiple transmisssion paths:
true: Enable multiple transmisssion path.false: Dsiable multiple transmisssion path. | Optional<MultipathMode> agora::rtc::ChannelMediaOptions::uplinkMultipathMode |
Uplink transmission mode. See MultipathMode.
enableMultipath is set to true. | Optional<MultipathMode> agora::rtc::ChannelMediaOptions::downlinkMultipathMode |
Downlink transmission mode. See MultipathMode.
enableMultipath is set to true. | Optional<MultipathType> agora::rtc::ChannelMediaOptions::preferMultipathType |
Preferred type of transmission path. See MultipathType.
enableMultipath is set to true.
1.8.18