Enum Class VideoContentPreferencesMode

All Implemented Interfaces:
Serializable, Comparable<VideoContentPreferencesMode>, Constable

public enum VideoContentPreferencesMode extends Enum<VideoContentPreferencesMode>
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). RemoteVideoTracks 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.
  • Enum Constant Details

  • Method Details

    • values

      public static VideoContentPreferencesMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VideoContentPreferencesMode valueOf(String name)
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null