Chartbreaker
    Preparing search index...

    Interface MediaDeviceInfo

    The MediaDeviceInfo interface of the Media Capture and Streams API contains information that describes a single media input or output device. Available only in secure contexts.

    MDN Reference

    interface MediaDeviceInfo {
        deviceId: string;
        groupId: string;
        kind: MediaDeviceKind;
        label: string;
        toJSON(): any;
    }
    Index

    Properties

    Methods

    Properties

    deviceId: string

    The deviceId read-only property of the MediaDeviceInfo interface returns a string that is an identifier for the represented device and is persisted across sessions.

    MDN Reference

    groupId: string

    The groupId read-only property of the MediaDeviceInfo interface returns a string that is a group identifier.

    MDN Reference

    The kind read-only property of the MediaDeviceInfo interface returns an enumerated value, that is either "videoinput", "audioinput" or "audiooutput".

    MDN Reference

    label: string

    The label read-only property of the MediaDeviceInfo interface returns a string describing this device (for example "External USB Webcam").

    MDN Reference

    Methods

    • The toJSON() method of the MediaDeviceInfo interface is a serializer; it returns a JSON representation of the MediaDeviceInfo object.

      MDN Reference

      Returns any