@avaya/infinity-agent-sdk - v1.0.0
    Preparing search index...

    Enumeration MediaDevicePermissionState

    The set of possible browser permission states for a media device.

    Returned via User.getAudioDevicePermissionState. Check this before calling User.getAvailableAudioDevices to avoid triggering an unexpected browser permission prompt.

    const state = user.getAudioDevicePermissionState();
    if (state === MediaDevicePermissionState.GRANTED) {
    const devices = await user.getAvailableAudioDevices();
    } else if (state === MediaDevicePermissionState.DENIED) {
    console.warn("Microphone access blocked - voice calls unavailable.");
    }
    Index

    Enumeration Members

    Enumeration Members

    GRANTED: "granted"

    The agent has granted device access. Device enumeration and voice calls are available.

    DENIED: "denied"

    The agent has blocked device access. Voice calls are not possible until permission is re-granted in the browser.

    PROMPT: "prompt"

    The browser will prompt the agent for permission the next time microphone access is requested.

    UNKNOWN: "unknown"

    Permission state could not be determined (e.g. browser does not support the Permissions API).