Package com.twilio.video
Enum VideoContentPreferencesMode
- java.lang.Object
-
- java.lang.Enum<VideoContentPreferencesMode>
-
- com.twilio.video.VideoContentPreferencesMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VideoContentPreferencesMode>
public enum VideoContentPreferencesMode extends java.lang.Enum<VideoContentPreferencesMode>
Configures the mode for specifying content preferences for theRemoteVideoTrack
. When set toAUTO
the SDK determines the render dimensions by inspecting the attached view(VideoView
orVideoTextureView
).RemoteVideoTrack
s rendered in smaller views will receive a lower resolution stream compared to the video rendered in larger views. When set toMANUAL
you can set the dimensions programmatically by callingRemoteVideoTrack.setContentPreferences(VideoContentPreferences)
. This feature supersedes theVideoBandwidthProfileOptions.Builder.renderDimensions(Map)
setter. Attempting to setVideoBandwidthProfileOptions.Builder.videoContentPreferencesMode(VideoContentPreferencesMode)
whenVideoBandwidthProfileOptions.Builder.renderDimensions(Map)
is already set will throw an exception.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO
The SDK specifies content preferences based on video view size.MANUAL
The application specifies the content preferences for individual tracks usingRemoteVideoTrack.setContentPreferences(VideoContentPreferences)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VideoContentPreferencesMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VideoContentPreferencesMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final VideoContentPreferencesMode AUTO
The SDK specifies content preferences based on video view size. ARemoteVideoTrack
rendered by a view(VideoView
orVideoTextureView
) with larger dimensions will get a higher quality video compared to a RemoteVideoTrack rendered by a VideoView or VideoTextureView with smaller dimensions.
-
MANUAL
public static final VideoContentPreferencesMode MANUAL
The application specifies the content preferences for individual tracks usingRemoteVideoTrack.setContentPreferences(VideoContentPreferences)
-
-
Method Detail
-
values
public static VideoContentPreferencesMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VideoContentPreferencesMode c : VideoContentPreferencesMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VideoContentPreferencesMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-