TechnologiesAudio

AVSystemRouting

iOSmacOStvOSwatchOSvisionOS

AVSystemRouting routes media playback to remote devices on iOS, with configurable launch modes and bidirectional data channels. You manage routes through AVSystemRouteController, observe changes by adopting AVSystemRouteControllerObserver, and inspect individual destinations with AVSystemRoute. As routing changes occur, an AVSystemRouteEvent reports what happened through its AVSystemRouteEventReason, and you exchange data over a route by handling callbacks with AVSystemRouteDataDelegate. Sessions such as AVSystemRouteMediaSession and AVSystemRouteSession represent active routing, while AVSystemRouteLaunchMode and AVSystemRoutingError describe launch behavior and failures.

Routing Management 3

Discover, manage, and observe the routing of media playback to remote devices.

  • Cl
    AVSystemRouteController
    An object that manages interaction with system routes.
  • Pr
    AVSystemRouteControllerObserver
    A protocol for observers of a system routing controller.
  • Cl
    AVSystemRoute
    An active media route to a remote device that manages connection and communication for media playback and data exchange.

Routing Sessions 2

Represent active routing of media to a remote destination.

  • Cl
    AVSystemRouteMediaSession
    An object that provides playback controls and a data channel for a session running on a remote device.
  • Cl
    AVSystemRouteSession
    An object that manages a single media playback session on a remote device.

Routing Events 2

Report changes in routing state and the reasons behind them.

  • Cl
    AVSystemRouteEvent
    An object that represents an event that occurs on a system route.
  • En
    AVSystemRouteEventReasoniOS 27.0+
    Values that indicate the reason for a routing event.

Data Exchange 1

Handle bidirectional data channels established over a route.

  • Pr
    AVSystemRouteDataDelegate
    A protocol for handling data from a remote application.

Launch Behavior and Errors 2

Configure how routing launches and describe failures that can occur.

  • En
    AVSystemRouteLaunchModeiOS 27.0+
    The mode that determines how media playback launches on a remote device.
  • St
    AVSystemRoutingErroriOS 27.0+
    A structure that describes errors that can occur while routing media to remote devices.

Extends 1

__AVSystemRoute
← Audio