BasePlayer Class

open class BasePlayer : BaseInterceptable

BasePlayer implements all properties that are updated from the State and must be synchronised on ‘playerQueue’

Effective URL

  • Triggered when the effective URL changes, see notifyEffectiveUrlChanged(_:).

    Declaration

    Swift

    public var onEffectiveUrlChanged: ((URL) -> Void)?
  • The URL the content is effectively loaded with, InternalState.effectiveUrl as the state subscriber of the player feeds it. nil until the state of the created player is delivered.

    Declaration

    Swift

    public var effectiveUrl: URL? { get set }
  • Reports a changed effective URL through onEffectiveUrlChanged. Called by the state subscriber of the player on the queue of the state store; players override it to deliver the callback on their callbacks queue.

    Declaration

    Swift

    open func notifyEffectiveUrlChanged(_ url: URL)

State Timeouts