public class ChannelMediaOptions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.Integer |
audienceLatencyLevel
The audience latency level type:
- `AUDIENCE_LATENCY_LEVEL_LOW_LATENCY`(1): Low latency.
|
java.lang.Integer |
audioDelayMs
The delay in ms for sending audio frames.
|
java.lang.Boolean |
autoSubscribeAudio
Determines whether to subscribe all remote audio streams automatically.
|
java.lang.Boolean |
autoSubscribeVideo
Determines whether to subscribe all remote video streams automatically.
|
java.lang.Integer |
channelProfile
The channel profile:
- `CHANNEL_PROFILE_COMMUNICATION`(0): Communication.
|
java.lang.Integer |
clientRoleType
The client role type:
- `CLIENT_ROLE_BROADCASTER`(1): The broadcaster, who can both send and receive streams.
|
java.lang.Integer |
customVideoTrackId
The custom video track id which will used to publish or preview.
|
java.lang.Integer |
defaultVideoStreamType
The default video stream type to subscribe to:
- `VIDEO_STREAM_HIGH`(0): (Default) The high-stream video, that is, the video stream featuring
in high resolution and high bitrate.
|
java.lang.Boolean |
enableAudioRecordingOrPlayout
Determines whether to enable audio recording or playout.
|
java.lang.Boolean |
enableBuiltInMediaEncryption
Enable media packet encryption.
|
java.lang.Boolean |
isAudioFilterable
Determines whether local audio stream can be filtered.
|
java.lang.Boolean |
isInteractiveAudience
This mode is only used for audience.
|
java.lang.Integer |
mediaPlayerAudioDelayMs
The delay in ms for sending media player audio frames.
|
java.lang.Boolean |
publishCameraTrack
Determines whether to publish the video of the camera track.
|
java.lang.Integer |
publishCustomAudioSourceId
The source id of the custom audio, default is 0.
|
java.lang.Boolean |
publishCustomAudioTrack
Determines whether to publish the audio of the custom audio track.
|
java.lang.Boolean |
publishCustomAudioTrackAec
Determines whether to publish AEC custom audio track.
|
java.lang.Boolean |
publishCustomAudioTrackEnableAec
Determines whether to enable AEC when publish custom audio track.
|
java.lang.Boolean |
publishCustomVideoTrack
Determines whether to publish the video of the custom video track.
|
java.lang.Boolean |
publishDirectCustomAudioTrack
Determines whether to publish custom audio track of microphone source.
|
java.lang.Boolean |
publishEncodedVideoTrack
Determines whether to publish the video of the encoded video track.
|
java.lang.Boolean |
publishMediaPlayerAudioTrack
Determines whether to publish the audio track of media player source.
|
java.lang.Integer |
publishMediaPlayerId
Determines which media player source should be published.
|
java.lang.Boolean |
publishMediaPlayerVideoTrack
Determines whether to publish the video track of media player source.
|
java.lang.Boolean |
publishMicrophoneTrack
Determines whether to publish the recorded audio of microphone.
|
java.lang.Boolean |
publishRhythmPlayerTrack
Determines whether to publish the sound of the rhythm player to remote users.
|
java.lang.Boolean |
publishScreenCaptureAudio
Determines whether to publish the audio track of the screen capturer.
|
java.lang.Boolean |
publishScreenCaptureVideo
Determines whether to publish the video track of the capturer .
|
java.lang.Boolean |
publishSecondaryCameraTrack
Determines whether to publish the video of the secondary camera track.
|
java.lang.Boolean |
startPreview
Determines whether to start preview when join channel if canvas have been set.
|
java.lang.String |
token
The token to be renewed.
|
Constructor and Description |
---|
ChannelMediaOptions() |
ChannelMediaOptions(java.lang.Integer clientRoleType) |
public java.lang.Boolean publishCameraTrack
public java.lang.Boolean publishSecondaryCameraTrack
public java.lang.Boolean publishMicrophoneTrack
muteLocalAudioStream
before joining a channel.
- true: (Default) Publish the recorded audio of microphone.
- false: Do not publish the recorded audio of microphone.public java.lang.Boolean publishScreenCaptureVideo
public java.lang.Boolean publishScreenCaptureAudio
public java.lang.Boolean publishCustomAudioTrack
public java.lang.Integer publishCustomAudioSourceId
public java.lang.Boolean publishCustomAudioTrackEnableAec
public java.lang.Boolean publishDirectCustomAudioTrack
public java.lang.Boolean publishCustomAudioTrackAec
public java.lang.Boolean publishCustomVideoTrack
public java.lang.Boolean publishEncodedVideoTrack
public java.lang.Boolean publishMediaPlayerAudioTrack
public java.lang.Boolean publishMediaPlayerVideoTrack
public java.lang.Boolean autoSubscribeAudio
setDefaultMuteAllRemoteAudioStreams
before joining a channel.
- true: (Default) Subscribe all remote audio streams automatically.
- false: Do not subscribe any remote audio stream automatically.public java.lang.Boolean autoSubscribeVideo
setDefaultMuteAllRemoteVideoStreams
before joining a channel.
- True: (Default) Subscribe all remote video streams automatically.
- False: Do not subscribe any remote video stream automatically.public java.lang.Boolean enableAudioRecordingOrPlayout
public java.lang.Integer publishMediaPlayerId
public java.lang.Integer clientRoleType
public java.lang.Integer audienceLatencyLevel
public java.lang.Integer defaultVideoStreamType
public java.lang.Integer channelProfile
public java.lang.Integer audioDelayMs
public java.lang.Integer mediaPlayerAudioDelayMs
public java.lang.String token
public java.lang.Boolean enableBuiltInMediaEncryption
public java.lang.Boolean publishRhythmPlayerTrack
public java.lang.Boolean isInteractiveAudience
public java.lang.Integer customVideoTrackId
public java.lang.Boolean isAudioFilterable
public java.lang.Boolean startPreview
public ChannelMediaOptions()
public ChannelMediaOptions(java.lang.Integer clientRoleType)
public java.lang.Boolean isPublishCameraTrack()
public java.lang.Boolean isPublishSecondaryCameraTrack()
public java.lang.Boolean isPublishScreenCaptureVideo()
public java.lang.Boolean isPublishScreenCaptureAudio()
public java.lang.Boolean isPublishCustomAudioTrack()
public java.lang.Boolean isPublishCustomAudioTrackEnableAec()
public java.lang.Boolean isPublishCustomAudioTrackAec()
public java.lang.Boolean isPublishDirectCustomAudioTrack()
public java.lang.Boolean isPublishCustomVideoTrack()
public java.lang.Boolean isPublishEncodedVideoTrack()
public java.lang.Boolean isPublishMediaPlayerAudioTrack()
public java.lang.Boolean isPublishMediaPlayerVideoTrack()
public java.lang.Integer getPublishMediaPlayerId()
public java.lang.Boolean isPublishMicrophoneTrack()
public java.lang.Boolean isAutoSubscribeAudio()
public java.lang.Boolean isAutoSubscribeVideo()
public java.lang.Boolean isStartPreview()
public java.lang.Boolean isEnableAudioRecordingOrPlayout()
public java.lang.Integer getClientRoleType()
public java.lang.Integer getAudienceLatencyLevel()
public java.lang.Integer getDefaultVideoStreamType()
public java.lang.Integer getChannelProfile()
public java.lang.Integer getAudioDelayMs()
public java.lang.Integer getMediaPlayerAudioDelayMs()
public java.lang.String getToken()
public java.lang.Boolean isEnableBuiltInMediaEncryption()
public java.lang.Boolean getPublishRhythmPlayerTrack()
public java.lang.Boolean getIsAudioFilterable()
public java.lang.Integer getPublishCustomAudioSourceId()
public java.lang.Integer getCustomVideoTrackId()
public java.lang.Boolean isInteractiveAudience()
public java.lang.String toString()
toString
in class java.lang.Object