AVPlayerEngine

public class AVPlayerEngine : AVPlayer

An AVPlayerEngine is a controller used to manage the playback and timing of a media asset. It provides the interface to control the player’s behavior such as its ability to play, pause, and seek to various points in the timeline.

  • Undocumented

    Declaration

    Swift

    public weak var view: PlayerView? { get set }
  • Holds the current time for the current item.

    Attention

    For live streams returns relative time according to the allowed stream window.

    In addition, keep in mind that because the duration is calcaulated from seekableTimeRanges in live streams there could be a chance that current time will be bigger than the duration because the current segment wasn’t yet added to the seekable time ranges.

    Declaration

    Swift

    public var currentPosition: TimeInterval { get set }
  • Undocumented

    Declaration

    Swift

    public override var rate: Float { get set }
  • Undocumented

    Declaration

    Swift

    public func stop()
  • Undocumented

    Declaration

    Swift

    override public func pause()
  • Undocumented

    Declaration

    Swift

    override public func play()
  • Undocumented

    Declaration

    Swift

    public func selectTrack(trackId: String)
  • Undocumented

    Declaration

    Swift

    override public func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?)