Enum Class VideoType

java.lang.Object
java.lang.Enum<VideoType>
com.vonage.client.video.VideoType
All Implemented Interfaces:
Serializable, Comparable<VideoType>, java.lang.constant.Constable

public enum VideoType extends Enum<VideoType>
Represents the video types returned in GetStreamResponse.getVideoType().
  • Enum Constant Details

    • CAMERA

      public static final VideoType CAMERA
      Uses the camera as the video source.
    • SCREEN

      public static final VideoType SCREEN
      Uses screen sharing on the publisher as the video source.
    • CUSTOM

      public static final VideoType CUSTOM
      Published by a web client using an HTML VideoTrack element as the video source.
  • Method Details

    • values

      public static VideoType[] 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

      public static VideoType 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.)
      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 name
      NullPointerException - if the argument is null
    • fromString

      public static VideoType fromString(String value)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<VideoType>