-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum ClientTrackSwitchOffControlConfigures the mode for switching off/on subscribed RemoteVideoTracks 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 Summary
Enum Constants Enum Constant Description AUTOIn this mode, the SDK determines whether RemoteVideoTracks should be switched offbased on tvi.webrtc.VideoSink attachment and android.view.View visibility.Only VideoTextureViews and VideoViews are supported. If a custom s is added to the RemoteVideoTrack, then this mode will bedisabled and the track will remain switched on until the sink is removed from the track.
MANUALIn this mode, the application requests that specific RemoteVideoTracks be switchedoff or on using the switchOff/switchOn methods on the RemoteVideoTrack.
-
Method Summary
Modifier and Type Method Description static Array<ClientTrackSwitchOffControl>values()static ClientTrackSwitchOffControlvalueOf(String name)-
-
Method Detail
-
values
static Array<ClientTrackSwitchOffControl> values()
-
valueOf
static ClientTrackSwitchOffControl valueOf(String name)
-
-
-
-