<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaDevice",
  "identifier" : "/documentation/MediaDevice/MediaDeviceExtension/startSession(_:identifier:url:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Device"
    ],
    "preciseIdentifier" : "s:11MediaDevice0aB9ExtensionP12startSession_10identifier3urlyAA0a6OutputE0C_SSSg10Foundation3URLVtF"
  },
  "title" : "startSession(_:identifier:url:)"
}
-->

# startSession(_:identifier:url:)

Called when media playback or a remote application should be started on a remote device.

```
@MainActor func startSession(_ session: MediaOutputSession, identifier: String?, url: URL)
```

## Parameters

`session`

The session associated with the playback request.

`identifier`

The application identifier for the remote application. If `nil`, the extension should provide a default media playback experience on the remote device.

`url`

The URL identifying the media content or application specific URL for the remote application.

---

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)