public enum ClientTrackSwitchOffControl extends java.lang.Enum<ClientTrackSwitchOffControl>
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.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final ClientTrackSwitchOffControl AUTO
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.
public static final ClientTrackSwitchOffControl MANUAL
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 name
java.lang.NullPointerException- if the argument is null