AudioServerPlugIn.RegisterMediaDeviceExtension(IntPtr, Action) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.