BasicPlayer

@objc
public protocol BasicPlayer

Undocumented

  • The player’s duration.

    Declaration

    Swift

    @objc
    var duration: TimeInterval { get }
  • The player’s currentState.

    Declaration

    Swift

    @objc
    var currentState: PlayerState { get }
  • Indicates if player is playing.

    Declaration

    Swift

    @objc
    var isPlaying: Bool { get }
  • The player’s view component.

    Declaration

    Swift

    @objc
    weak var view: PlayerView? { get set }
  • The current player position.

    Declaration

    Swift

    @objc
    var currentTime: TimeInterval { get set }
  • Get the player’s current audio track.

    Declaration

    Swift

    @objc
    var currentAudioTrack: String? { get }
  • Get the player’s current text track.

    Declaration

    Swift

    @objc
    var currentTextTrack: String? { get }
  • Indicates the desired rate of playback, 0.0 means paused, 1.0 indicates a desire to play at the natural rate of the current item.

    Declaration

    Swift

    @objc
    var rate: Float { get set }
  • Provides a collection of time ranges for which the player has the media data readily available. The ranges provided might be discontinuous.

    Declaration

    Swift

    @objc
    var loadedTimeRanges: [PKTimeRange]? { get }
  • send play action for the player.

    Declaration

    Swift

    @objc
    func play()
  • send pause action for the player.

    Declaration

    Swift

    @objc
    func pause()
  • send resume action for the player.

    Declaration

    Swift

    @objc
    func resume()
  • send stop action for the player.

    Declaration

    Swift

    @objc
    func stop()
  • send seek action for the player.

    Declaration

    Swift

    @objc
    func seek(to time: TimeInterval)
  • Select Track

    Declaration

    Swift

    @objc
    func selectTrack(trackId: String)
  • Release player resources.

    Declaration

    Swift

    @objc
    func destroy()
  • Prepare for playing an entry. play when it’s ready. (preparing starts buffering the entry)

    Declaration

    Swift

    @objc
    func prepare(_ config: MediaConfig)