public enum ClientTrackSwitchOffControl extends java.lang.Enum<ClientTrackSwitchOffControl>
RemoteVideoTrack
s based on the
subscriber's rendering environment. Switching off a RemoteVideoTrack
means no media is
sent by the media server to the client for that track even though it has been subscribed to by
the client. This feature helps in conserving network bandwidth and CPU resources by avoiding
unnecessary transmission and decoding of remote tracks. This feature supersedes the `maxTracks`
parameter. Attempting to set `clientTrackSwitchOffControl` when `maxTracks` is already set will
throw an exception.Enum Constant and Description |
---|
AUTO
In this mode, the SDK determines whether
RemoteVideoTrack s should be switched off
based on VideoSink attachment and View visibility. |
MANUAL
In this mode, the application requests that specific
RemoteVideoTrack s be switched
off or on using the RemoteVideoTrack.switchOff() /RemoteVideoTrack.switchOn()
methods on the RemoteVideoTrack . |
Modifier and Type | Method and Description |
---|---|
static ClientTrackSwitchOffControl |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClientTrackSwitchOffControl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientTrackSwitchOffControl AUTO
RemoteVideoTrack
s should be switched off
based on VideoSink
attachment and View
visibility.
Only VideoTextureView
s and VideoView
s are supported. If a custom VideoSink
s is added to the RemoteVideoTrack
, then this mode will be
disabled and the track will remain switched on until the sink is removed from the track.public static final ClientTrackSwitchOffControl MANUAL
RemoteVideoTrack
s be switched
off or on using the RemoteVideoTrack.switchOff()
/RemoteVideoTrack.switchOn()
methods on the RemoteVideoTrack
.public static ClientTrackSwitchOffControl[] values()
for (ClientTrackSwitchOffControl c : ClientTrackSwitchOffControl.values()) System.out.println(c);
public static ClientTrackSwitchOffControl valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null7.0.0