JWVideoGravity
@objc
public enum JWVideoGravity : Int
extension JWVideoGravity: CustomStringConvertible
How to display video content within the bounds of a view.
-
The player should preserve the video’s aspect ratio and fit the video within the view’s bounds.
Declaration
Swift
case resizeAspect
-
The player should preserve the video’s aspect ratio and fill the view’s bounds.
This gravity value may crop the video image along its horizontal or vertical dimension.
Declaration
Swift
case resizeAspectFill
-
The video should be stretched to fill the view’s bounds.
Declaration
Swift
case resize
-
Declaration
Swift
public var description: String { get }