PlayerDecoratorBase
@objc
open class PlayerDecoratorBase : NSObject, Player
Undocumented
-
Declaration
Swift
public var delegate: PlayerDelegate? { get set }
-
Declaration
Swift
weak public var mediaEntry: PKMediaEntry? { get }
-
Declaration
Swift
public var settings: PKPlayerSettings { get }
-
Declaration
Swift
public var mediaFormat: PKMediaSource.MediaFormat { get }
-
Declaration
Swift
public var currentTime: TimeInterval { get set }
-
Declaration
Swift
public var duration: Double { get }
-
Declaration
Swift
public var currentAudioTrack: String? { get }
-
Declaration
Swift
public var currentTextTrack: String? { get }
-
Declaration
Swift
open var currentState: PlayerState { get }
-
Declaration
Swift
open var isPlaying: Bool { get }
-
Declaration
Swift
public weak var view: PlayerView? { get set }
-
Declaration
Swift
public var sessionId: String { get }
-
Declaration
Swift
public var rate: Float { get set }
-
Declaration
Swift
@objc public var loadedTimeRanges: [PKTimeRange]? { get }
-
Declaration
Swift
open func prepare(_ config: MediaConfig)
-
Undocumented
Declaration
Swift
public func setPlayer(_ player: Player!)
-
Undocumented
Declaration
Swift
public func getPlayer() -> Player
-
Declaration
Swift
open func destroy()
-
Declaration
Swift
open func play()
-
Declaration
Swift
open func pause()
-
Declaration
Swift
open func seek(to time: TimeInterval)
-
Declaration
Swift
open func resume()
-
Declaration
Swift
open func stop()
-
Declaration
Swift
public func updatePluginConfig(pluginName: String, config: Any)
-
Declaration
Swift
public func isLive() -> Bool
-
Declaration
Swift
public func removeObserver(_ observer: AnyObject, event: PKEvent.Type)
-
Declaration
Swift
public func removeObserver(_ observer: AnyObject, events: [PKEvent.Type])
-
Declaration
Swift
public func selectTrack(trackId: String)
-
Declaration
Swift
public func getController(type: PKController.Type) -> PKController?
-
Declaration
Swift
public func addPeriodicObserver(interval: TimeInterval, observeOn dispatchQueue: DispatchQueue? = nil, using block: @escaping (TimeInterval) -> Void) -> UUID
-
Declaration
Swift
public func addBoundaryObserver(boundaries: [PKBoundary], observeOn dispatchQueue: DispatchQueue? = nil, using block: @escaping (TimeInterval, Double) -> Void) -> UUID
-
Declaration
Swift
public func removePeriodicObserver(_ token: UUID)
-
Declaration
Swift
public func removeBoundaryObserver(_ token: UUID)