Contents

stop()

Stops the session and terminates media playback on the remote device.

Declaration

final func stop()

Mentioned in

Discussion

Call this function to end the playback session and clean up resources on both the local and remote devices. After calling this function, the session is terminated and further calls to session functions will have no effect.

The system automatically handles disconnection and cleanup of the remote app or player. If you need to start playback again, create a new AVSystemRouteSession instance.