AxpAudioInputInterface provides functionality for managing the audio input device that is used by the user (microphone).

interface AxpAudioInputInterface {
    addOnDevicesAddedCallback(callback: ((mediaInterface: AxpMediaInterface, devices: AxpMediaDevice[]) => void)): void;
    addOnDevicesRemovedCallback(callback: ((mediaInterface: AxpMediaInterface, devices: AxpMediaDevice[]) => void)): void;
    addOnDevicesUnavailableCallback(callback: ((mediaInterface: AxpMediaInterface) => void)): void;
    addOnSelectedDeviceChangedCallback(callback: ((mediaInterface: AxpMediaInterface, device: AxpMediaDevice) => void)): void;
    addOnSelectedDeviceRemovedCallback(callback: ((mediaInterface: AxpMediaInterface, device: AxpMediaDevice) => void)): void;
    getAvailableDevices(): AxpMediaDevice[];
    getSelectedDevice(): AxpMediaDevice;
    getVolume(): number;
    hasAvailableDevices(): boolean;
    setSelectedDevice(device: AxpMediaDevice): void;
    setVolume(volume: number): any;
}

Hierarchy (view full)

Methods

  • Returns number

    The volume of the audio input device

  • Sets the volume of the audio input device

    Parameters

    • volume: number

      between 0.0 and 1.0

    Returns any