Interface AudioMixController

An instance of [[AudioMixController]] is provided when constructing a [[MeetingClient]] to allow for binding audio output.

interface AudioMixController {
    addAudioMixObserver(observer: AudioMixObserver): void;
    bindAudioDevice(device: MediaDeviceInfo): Promise<void>;
    bindAudioElement(element: HTMLAudioElement): Promise<void>;
    bindAudioStream(stream: MediaStream): Promise<void>;
    getCurrentMeetingAudioStream(): Promise<MediaStream>;
    removeAudioMixObserver(observer: AudioMixObserver): void;
    unbindAudioElement(): void;
}

Hierarchy (View Summary)

Implemented by

Methods

  • Called when the audio mix device can be bound to an element and stream.

    This method rejects if you specify a device and the browser does not support setSinkId; use BrowserBehavior.supportsSetSinkId to check before calling this method.

    Parameters

    • device: MediaDeviceInfo

    Returns Promise<void>