---
title: Discovering a third-party media-streaming device
framework: devicediscoveryextension
role: sampleCode
role_heading: Sample Code
path: devicediscoveryextension/discovering-a-third-party-media-streaming-device
---

# Discovering a third-party media-streaming device

Build an extension that streams media to a server app in iOS or macOS.

## Overview

Overview note: This sample code project is associated with WWDC22 session 10096: What’s new in privacy. Configure the sample code project Run either the macOS or iOS server target to emulate a third-party media-streaming receiver. Set the client scheme’s run destination to an iOS 16 device. Run the client and select the emulated device from the system device-picker UI.

## See Also

### Essentials

- [Media Device Discovery Extension](bundleresources/entitlements/com.apple.developer.media-device-discovery-extension.md)
