lib-jitsi-meet
    Preparing search index...

    Class JitsiMediaDevices

    Media devices utilities for Jitsi.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Executes callback with list of media devices connected.

      Parameters

      • callback: (devices: MediaDeviceInfo[]) => void

      Returns void

    • Returns currently used audio output device id, 'default' stands for default device

      Returns string

    • Returns true if changing the input (camera / microphone) or output (audio) device is supported and false if not.

      Parameters

      • OptionaldeviceType: string

        type of device to change. Default is undefined or 'input', 'output' - for audio output device change.

      Returns boolean

      true if available, false otherwise.

    • Checks if the permission for the given device was granted.

      Parameters

      • Optionaltype: MediaType

        type of devices to check, undefined stands for both 'audio' and 'video' together

      Returns Promise<boolean>

    • Returns true if it is possible to be simultaneously capturing audio from more than one device.

      Returns boolean

    • Sets current audio output device.

      Parameters

      • deviceId: string

        id of 'audiooutput' device from navigator.mediaDevices.enumerateDevices(), 'default' is for default device

      Returns Promise<void>

      • resolves when audio output is changed, is rejected otherwise