public enum VideoContentPreferencesMode extends java.lang.Enum<VideoContentPreferencesMode>
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()
setter. Attempting to set VideoBandwidthProfileOptions.Builder.videoContentPreferencesMode(VideoContentPreferencesMode)
when VideoBandwidthProfileOptions.Builder#renderDimensions()
is already set will throw an
exception.Enum Constant and Description |
---|
AUTO
The SDK specifies content preferences based on video view size.
|
MANUAL
The application specifies the content preferences for individual tracks using
RemoteVideoTrack.setContentPreferences(VideoContentPreferences) |
Modifier and Type | Method and 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.
|
public static final VideoContentPreferencesMode AUTO
RemoteVideoTrack
rendered by a view(VideoView
or VideoTextureView
) with larger dimensions will
get a higher quality video compared to a RemoteVideoTrack rendered by a VideoView or
VideoTextureView with smaller dimensions.public static final VideoContentPreferencesMode MANUAL
RemoteVideoTrack.setContentPreferences(VideoContentPreferences)
public static VideoContentPreferencesMode[] values()
for (VideoContentPreferencesMode c : VideoContentPreferencesMode.values()) System.out.println(c);
public static VideoContentPreferencesMode 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 namejava.lang.NullPointerException
- if the argument is null6.4.1