---
title: stop()
framework: avsystemrouting
role: symbol
role_heading: Instance Method
path: avsystemrouting/avsystemroutesession-gp78/stop()
---

# stop()

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

## Declaration

```swift
final func stop()
```

## Mentioned in

Routing and streaming media to remote devices

## Discussion

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. note: Always call this function when playback ends to ensure proper resource cleanup and to notify the remote device that the session has concluded.
