OpenTok.AudioDevice.Notifications
public class Notifications : IDisposable
Enclosing type: OpenTok.AudioDevice
Represents a subscription to system audio device notifications. This object sends events when a system input or output audio device is added or removed, and when the default system input or output audio device changes. This instance can be disposed when no longer used to release unmanaged resources.
Nested types: OpenTok.AudioDevice.Notifications.InputAudioDeviceEventArgs, OpenTok.AudioDevice.Notifications.OutputAudioDeviceEventArgs
Methods
| Name | Description |
|---|---|
Notifications(dispatcher) |
|
Dispose() |
Disposes the AudioDevice.Notifications instance. |
Dispose(disposing) |
Notifications(dispatcher)
Parameters:
| Name | Type | Description |
|---|---|---|
dispatcher |
IDispatcher | The IDispatcher used to queue received events. |
Dispose()
Disposes the AudioDevice.Notifications instance.
Dispose(disposing)
Parameters:
| Name | Type | Description |
|---|---|---|
disposing |
bool |
Events
InputDeviceAdded
event EventHandler<InputAudioDeviceEventArgs> InputDeviceAdded
Sent when a new audio input device is detected by the system.
OutputDeviceAdded
event EventHandler<OutputAudioDeviceEventArgs> OutputDeviceAdded
Sent when a new audio output device is detected by the system.
InputDeviceRemoved
event EventHandler<InputAudioDeviceEventArgs> InputDeviceRemoved
Sent when an audio input device is removed from the system.
OutputDeviceRemoved
event EventHandler<OutputAudioDeviceEventArgs> OutputDeviceRemoved
Sent when an audio output device is removed from the system.
DefaultInputDeviceChanged
event EventHandler<InputAudioDeviceEventArgs> DefaultInputDeviceChanged
Sent when the default audio input device changes at the system level.
DefaultOutputDeviceChanged
event EventHandler<OutputAudioDeviceEventArgs> DefaultOutputDeviceChanged
Sent when the default audio output device changes at the system level.