Video
@objcMembers
@objc(PESDKVideo)
open class Video : NSObject
An object that wraps audiovisual media.
The Video
class currently supports URL
and AVAsset
as sources for videos. Passing an URL
requires the destination to be in a format that can be decoded by iOS.
-
The underlying
AVAsset
object.Declaration
Swift
public let asset: AVAsset
-
The preferred transformation applied to the natural size of the first video track.
CGSize.zero
is returned if the first video track is not available.Declaration
Swift
public var size: CGSize { get }
-
Creates a new
Video
object from anAVAsset
.Declaration
Swift
public init(asset: AVAsset)
Parameters
asset
The asset that should be passed to the editor.
-
Creates a new
Video
object from anURL
.Declaration
Swift
@objc(initWithURL:) public convenience init(url: URL)
Parameters
url
The url to the video on disk. This must be in a format that can be decoded by iOS.