Enum VideoScalingType

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum VideoScalingType
    extends Enum<VideoScalingType>
                        

    Enumeration used to control how video frames are render to occupy Android view available space on screen.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ASPECT_FIT

      Video frame is scaled to fit the size of the view while maintaining the aspect ratio. Transparent borders may be displayed.

      ASPECT_FILL

      Video frame is scaled to fill the size of the view while maintaining the aspect ratio. Some portion of the video frame may be clipped.

      ASPECT_BALANCED

      Compromise between ASPECT_FIT and ASPECT_FILL. Video frame will fill as much of the view as possible while maintaining aspect ratio, as long as at least 56% of the frame content will be shown.

    • Method Summary

      Modifier and Type Method Description
      final VideoScalingType valueOf(String value) Returns the enum constant of this type with the specified name.
      final Array<VideoScalingType> values() Returns an array containing the constants of this enum type, in the order they're declared.
      • Methods inherited from class kotlin.Enum

        getName, getOrdinal
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • valueOf

         final VideoScalingType valueOf(String value)

        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.)

      • values

         final Array<VideoScalingType> values()

        Returns an array containing the constants of this enum type, in the order they're declared.

        This method may be used to iterate over the constants.