Package com.twilio.video
Enum Class VideoContentPreferencesMode
- All Implemented Interfaces:
Serializable
,Comparable<VideoContentPreferencesMode>
,Constable
Configures the mode for specifying content preferences for the
RemoteVideoTrack
. When set
to AUTO
the SDK determines the render dimensions by inspecting the attached view(VideoView
or VideoTextureView
). RemoteVideoTrack
s rendered in smaller views will
receive a lower resolution stream compared to the video rendered in larger views. When set to
MANUAL
you can set the dimensions programmatically by calling RemoteVideoTrack.setContentPreferences(VideoContentPreferences)
. This feature supersedes the
VideoBandwidthProfileOptions.Builder.renderDimensions(Map)
setter. Attempting to set
VideoBandwidthProfileOptions.Builder.videoContentPreferencesMode(VideoContentPreferencesMode)
when VideoBandwidthProfileOptions.Builder.renderDimensions(Map)
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 ConstantDescriptionThe SDK specifies content preferences based on video view size.The application specifies the content preferences for individual tracks usingRemoteVideoTrack.setContentPreferences(VideoContentPreferences)
-
Method Summary
Modifier and TypeMethodDescriptionstatic VideoContentPreferencesMode
Returns the enum constant of this class with the specified name.static VideoContentPreferencesMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
The application specifies the content preferences for individual tracks usingRemoteVideoTrack.setContentPreferences(VideoContentPreferences)
-
-
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
-