TechnologiesVideo, Photos & Camera

MediaDevice

iOSmacOStvOSwatchOSvisionOS

MediaDevice lets your iOS app discover, connect to, and manage external media capture devices, handling authorization and session lifecycle along the way. You represent a connected device with MediaOutputDevice and drive its capture work through a MediaOutputSession, surfacing failures as a MediaDeviceError. To extend the system with a custom device, you conform to the MediaDeviceExtensionConfiguration protocol.

Devices and Sessions 2

Represent a connected external capture device and drive its capture work through a session.

  • St
    MediaOutputDevice
    Represents a discoverable media output device such as a TV, speaker, or streaming stick.
  • Cl
    MediaOutputSession
    Represents a media output session for playing content on a remote device.

Extending the System 1

Configure a custom device extension to add new capture devices to the system.

  • Pr
    MediaDeviceExtensionConfiguration
    Configuration for the app extension.

Errors 1

Inspect failures that occur while discovering, connecting to, or managing devices.

  • St
    MediaDeviceError
    An error returned by MediaDeviceExtension operations.

Classes 1

  • Cl
    MediaDeviceRoutingManager
    An object used by a ``MediaDeviceExtension`` to report device discovery, state changes, and playback events back to the system.

Protocols 2

  • Pr
    MediaDeviceExtension
    A protocol that defines the requirements of a media device extension that discovers, activates, and plays media on a remote device.
  • Pr
    RealtimeSampleHandling
    A protocol that extends a media device extension to support realtime sample delivery.
← Video, Photos & Camera