Package com.twilio.video
Enum Class ClientTrackSwitchOffControl
- All Implemented Interfaces:
Serializable
,Comparable<ClientTrackSwitchOffControl>
,Constable
Configures the mode for switching off/on subscribed
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIn this mode, the SDK determines whetherRemoteVideoTrack
s should be switched off based onVideoSink
attachment andView
visibility.In this mode, the application requests that specificRemoteVideoTrack
s be switched off or on using theRemoteVideoTrack.switchOff()
/RemoteVideoTrack.switchOn()
methods on theRemoteVideoTrack
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientTrackSwitchOffControl
Returns the enum constant of this class with the specified name.static ClientTrackSwitchOffControl[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
In this mode, the SDK determines whetherRemoteVideoTrack
s should be switched off based onVideoSink
attachment andView
visibility. OnlyVideoTextureView
s andVideoView
s are supported. If a customVideoSink
s is added to theRemoteVideoTrack
, then this mode will be disabled and the track will remain switched on until the sink is removed from the track. -
MANUAL
In this mode, the application requests that specificRemoteVideoTrack
s be switched off or on using theRemoteVideoTrack.switchOff()
/RemoteVideoTrack.switchOn()
methods on theRemoteVideoTrack
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-