BMPScalingMode
Objective-C
enum BMPScalingMode : NSInteger {}
Swift
enum ScalingMode : Int, @unchecked Sendable
Specifies how the video content is scaled or stretched.
-
Specifies that the player should preserve the video’s aspect ratio and fill the container’s bounds.
Declaration
Objective-C
BMPScalingModeZoom
Swift
case zoom = 0
-
Specifies that the video should be stretched to fill the container’s bounds. The aspect ratio may not be preserved.
Declaration
Objective-C
BMPScalingModeStretch
Swift
case stretch = 1
-
Specifies that the player should preserve the video’s aspect ratio and fit the video within the container’s bounds (default).
Declaration
Objective-C
BMPScalingModeFit
Swift
case fit = 2