-
The presentation size of the current media asset.
Declaration
Swift
open var presentationSize: CGSize { get }
-
Indicates a preferred upper limit on the resolution of the media to be downloaded.
Declaration
Swift
@available(macOS 10.13, iOS 11.0, tvOS 11.0, *) open var preferredMaximumResolution: CGSize { get set }
-
The object that acts as the delegate of the video player view
Declaration
Swift
open weak var delegate: VideoPlayerDelegate? { get set }
-
Captures a snapshot of the current media at the specified time. If time is nil, the current time will be used.
Declaration
Swift
open func snapshot(at time: CMTime? = nil, completion: @escaping (_ image: UIImage?, _ error: Error?) -> Void)
Parameters
time
The time at which to capture the snapshot
completion
The block to invoke when the snapshot completes. Provides the image if no error occured.