Enum VideoEncodingMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<VideoEncodingMode>

    public enum VideoEncodingMode
    extends java.lang.Enum<VideoEncodingMode>
    VideoEncodingMode describes how publishers manage video codecs and video encodings.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUTO
      Twilio's SDKs and Servers select video codecs and manage video encodings automatically.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static VideoEncodingMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static VideoEncodingMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • AUTO

        public static final VideoEncodingMode AUTO
        Twilio's SDKs and Servers select video codecs and manage video encodings automatically.

        - The publisher prefers scalable video codecs in Group Rooms, and disables scalability features that are not needed in Peer-to-Peer and Go Rooms.

        - In Group Rooms, the publisher reduces resource usage by only sending the encodings that are needed by subscribers or by the media server (when recording is enabled).

        - If there are no subscribers, and recording is disabled then all track encodings are suspended.

    • Method Detail

      • values

        public static VideoEncodingMode[] 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 (VideoEncodingMode c : VideoEncodingMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static VideoEncodingMode 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 name
        java.lang.NullPointerException - if the argument is null