VideoRenderMode

public enum VideoRenderMode

The options to specify how the video adjusts its content to be render in a view.

Since

2.6.0
  • fit

    The option to scale the video to fit the size of the view by maintaining the aspect ratio. The black paddings will be added to the remaining area of the view.

    Declaration

    Swift

    case fit
  • The option to scale the video to fill the size of the view. Some portion of the video may be cropped.

    Declaration

    Swift

    case cropFill
  • The option to scale the video to fit the size of the view by changing the aspect ratio of the video if necessary.

    Declaration

    Swift

    case stretchFill