<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVSystemRouting",
  "identifier" : "/documentation/AVSystemRouting/AVSystemRouteSession-gp78/stop()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVSystemRouting"
    ],
    "preciseIdentifier" : "s:15AVSystemRouting0A12RouteSessionC4stopyyF"
  },
  "title" : "stop()"
}
-->

# stop()

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

```
final func stop()
```

## 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`](/documentation/AVSystemRouting/AVSystemRouteSession-gp78) 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)