OTVAVPlayerItem
@MainActor
public class OTVAVPlayerItem : AVPlayerItem
OTVAVPlayerItem is derived from AVPlayerItem, please refer to apple’s documentation for further information.
-
The content of HLS playlist. It’s a key path can be observed.
Declaration
Swift
@objc @MainActor public dynamic var metadata: String -
Creates an instance of
OTVAVPlayerItem.Declaration
Swift
@MainActor public convenience init(asset: AVAsset)Parameters
assetan AVAsset, Must be
OTVAVURLAsset, otherwise getfatalError -
Creates an instance of
OTVAVPlayerItem.Declaration
Swift
public convenience init(url URL: URL)Parameters
URLa URL.
-
Declaration
Swift
public override func seek(to time: CMTime, toleranceBefore: CMTime, toleranceAfter: CMTime, completionHandler: ((Bool) -> Void)? = nil) -
Declaration
Swift
public override func seek(to date: Date, completionHandler: ((Bool) -> Void)? = nil) -> Bool