AirPlay

public protocol AirPlay : EventDispatcherProtocol

The AirPlay API.

  • Whether the player is casting.

    Declaration

    Swift

    var casting: Bool { get }
  • The state of the casting process.

    Declaration

    Swift

    var state: PlayerCastState { get }
  • Start a casting session with the player’s source.

    Declaration

    Swift

    func start()
  • Stop the active casting session.

    Declaration

    Swift

    func stop()