<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaDevice",
  "identifier" : "/documentation/MediaDevice/MediaDeviceExtension",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Media Device"
    ],
    "preciseIdentifier" : "s:11MediaDevice0aB9ExtensionP"
  },
  "title" : "MediaDeviceExtension"
}
-->

# MediaDeviceExtension

A protocol that defines the requirements of a media device extension that discovers, activates, and plays media on a remote device.

```
@MainActor protocol MediaDeviceExtension : AppExtension
```

## Overview

The extension requires the `com.apple.developer.media-device-extension` entitlement. As part of this entitlement an ID for your protocol needs to be specified. This same identifier must also be declared in the extension’s Info.plist as the `UTTypeIdentifier`. If the identifier in the entitlement and Info.plist do not match, the extension will not be run.
This ID value can be used by other apps that use the `AVSystemRouting` framework and which intend to make use of an extension of this type.

The display name of the extension is sourced from the value of the `UTTypeDescription` key in the extension’s Info.plist. It may be presented in user interfaces.

---

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)