AVPlayerWrapper
open class AVPlayerWrapper : NSObject, PlayerEngine
Undocumented
-
Declaration
Swift
public var onEventBlock: ((PKEvent) -> Void)?
-
Undocumented
Declaration
Swift
public var currentPlayer: AVPlayerEngine
-
the current media config that was set
Declaration
Swift
public var mediaConfig: MediaConfig?
-
Undocumented
Declaration
Swift
public var mediaEntry: PKMediaEntry? { get }
-
Declaration
Swift
public var duration: Double { get }
-
Declaration
Swift
public var currentState: PlayerState { get }
-
Declaration
Swift
public var isPlaying: Bool { get }
-
Declaration
Swift
public var currentTime: TimeInterval { get set }
-
Declaration
Swift
public var currentPosition: TimeInterval { get set }
-
Declaration
Swift
public var startPosition: TimeInterval { get set }
-
Declaration
Swift
public var currentAudioTrack: String? { get }
-
Declaration
Swift
public var currentTextTrack: String? { get }
-
Declaration
Swift
open weak var view: PlayerView? { get set }
-
Declaration
Swift
public var rate: Float { get set }
-
Declaration
Swift
public var loadedTimeRanges: [PKTimeRange]? { get }
-
Undocumented
Declaration
Swift
public override init()
-
Load media on player
Declaration
Swift
open func loadMedia(from mediaSource: PKMediaSource?, handler: AssetHandler)
-
Declaration
Swift
public func prepare(_ mediaConfig: MediaConfig)
-
Declaration
Swift
public func play()
-
Declaration
Swift
public func pause()
-
Declaration
Swift
public func resume()
-
Declaration
Swift
public func stop()
-
Declaration
Swift
public func seek(to time: TimeInterval)
-
Declaration
Swift
public func selectTrack(trackId: String)
-
Declaration
Swift
open func destroy()