AxpMediaInterface represents a media interface

interface AxpMediaInterface {
    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;
    hasAvailableDevices(): boolean;
    setSelectedDevice(device: AxpMediaDevice): void;
}

Hierarchy (view full)

Methods

  • Adds a callback to be invoked when devices are removed

    Parameters

    Returns void

  • Adds a callback to be invoked when all devices are unavailable

    Parameters

    Returns void

  • Adds a callback to be invoked when selected device has changed

    Parameters

    Returns void

  • Adds a callback to be invoked when selected device has removed

    Parameters

    Returns void

  • Returns boolean

    True if there are available devices

  • Selects a media device

    Parameters

    Returns void