AVSystemRoute
An active media route to a remote device that manages connection and communication for media playback and data exchange.
Declaration
final class AVSystemRouteMentioned in
Overview
Use this object to control playback sessions, communicate with remote applications through data channels, and manage the lifecycle of remote connections.
The system route provides a high-level abstraction for routing media content to external devices such as TVs, speakers, or other compatible endpoints. You can create multiple sessions on a single route to manage different playback contexts or communication channels.
Manage sessions
Create an AVSystemRouteSession to initiate playback or communication with the remote device.
Access the protocol identifier
The protocolType property identifies the communication protocol used by the active route.
Send and receive data
Use the routeDataChannel property to send and receive custom data with the extension outside of any media session. This enables control messages, state synchronization, and other bidirectional communication needs.