Enum Class ClientTrackSwitchOffControl
Configures the mode for switching off/on subscribed
RemoteVideoTracks based on the subscriber's rendering environment. Switching off a
RemoteVideoTrackmeans 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 Details
AUTOpublic static final ClientTrackSwitchOffControl AUTOIn this mode, the SDK determines whether
RemoteVideoTracks should be switched off based on
VideoViews are supported. If a custom
VideoSinks 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.
MANUALpublic static final ClientTrackSwitchOffControl MANUAL
valuespublic static ClientTrackSwitchOffControl values()Returns an array containing the constants of this enum class, in the order they are declared.
- an array containing the constants of this enum class, in the order they are declared
valueOfReturns 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.)