Class MMNotificationClient
- java.lang.Object
-
- org.jitsi.impl.neomedia.jmfext.media.protocol.wasapi.MMNotificationClient
-
public class MMNotificationClient extends Object
Implements the Java counterpart of an IMMNotificationClient instance statically allocated by the native counterpart ofWASAPIand automatically registered with all IMMDeviceEnumerator instances. Invocations of methods on the IMMNotificationClient instance by Windows Audio Session API (WASAPI) are forwarded by WASAPI to the respective static methods of the MMNotificationClient class.- Author:
- Lyubomir Marinov
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidOnDefaultDeviceChanged(int flow, int role, String pwstrDefaultDevice)static voidOnDeviceAdded(String pwstrDeviceId)static voidOnDeviceRemoved(String pwstrDeviceId)static voidOnDeviceStateChanged(String pwstrDeviceId, int dwNewState)static voidOnPropertyValueChanged(String pwstrDeviceId, long key)static voidRegisterEndpointNotificationCallback(IMMNotificationClient pNotify)Registers a specific IMMNotificationClient to be notified when an audio endpoint device is added or removed, when the state or properties of an endpoint device change, or when there is a change in the default role assigned to an endpoint device.static voidUnregisterEndpointNotificationCallback(IMMNotificationClient pNotify)Deletes the registration of a specific IMMNotificationClient that the client registered in a previous call toRegisterEndpointNotificationCallback(IMMNotificationClient).
-
-
-
Method Detail
-
OnDefaultDeviceChanged
public static void OnDefaultDeviceChanged(int flow, int role, String pwstrDefaultDevice)
-
OnDeviceAdded
public static void OnDeviceAdded(String pwstrDeviceId)
-
OnDeviceRemoved
public static void OnDeviceRemoved(String pwstrDeviceId)
-
OnDeviceStateChanged
public static void OnDeviceStateChanged(String pwstrDeviceId, int dwNewState)
-
OnPropertyValueChanged
public static void OnPropertyValueChanged(String pwstrDeviceId, long key)
-
RegisterEndpointNotificationCallback
public static void RegisterEndpointNotificationCallback(IMMNotificationClient pNotify)
Registers a specific IMMNotificationClient to be notified when an audio endpoint device is added or removed, when the state or properties of an endpoint device change, or when there is a change in the default role assigned to an endpoint device.- Parameters:
pNotify- the IMMNotificationClient to register
-
UnregisterEndpointNotificationCallback
public static void UnregisterEndpointNotificationCallback(IMMNotificationClient pNotify)
Deletes the registration of a specific IMMNotificationClient that the client registered in a previous call toRegisterEndpointNotificationCallback(IMMNotificationClient).- Parameters:
pNotify- the IMMNotificationClient to delete the registration of
-
-