Language

AudioServerPlugIn.RegisterMediaDeviceExtension(IntPtr, Action) Method

Definition

Registers an audio server plug-in that exposes a remote media output device.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)]
public static int RegisterMediaDeviceExtension(IntPtr plugIn, Action? interruptionHandler);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)>]
static member RegisterMediaDeviceExtension : nativeint * Action -> int

Parameters

plugIn
IntPtr

nativeint

The opaque native AudioServerPlugInDriverRef value, or Zero.

interruptionHandler
Action

A callback invoked when the connection to the audio server is interrupted, or null.

Returns

An OSStatus value, where zero indicates success.

Attributes

Remarks

The plug-in may expose a single output audio device whose transport type is remote screen or remote streaming.

The caller is responsible for keeping the native plug-in interface and pointer storage valid for the duration of the registration.

Applies to