OTVAVPlayerItem
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 public dynamic var metadata: String
-
Creates an instance of
OTVAVPlayerItem
.Declaration
Swift
public convenience init(asset: AVAsset)
Parameters
asset
an AVAsset, Must be
OTVAVURLAsset
, otherwise getfatalError
-
Creates an instance of
OTVAVPlayerItem
.Declaration
Swift
public convenience init(url URL: URL)
Parameters
URL
a 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