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
BMPScalingModeZoomSwift
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
BMPScalingModeStretchSwift
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
BMPScalingModeFitSwift
case fit = 2
BMPScalingMode Enumeration Reference