Interface SelectMediaDeviceCallback.Response

Enclosing interface:
SelectMediaDeviceCallback

public static interface SelectMediaDeviceCallback.Response
A response for the SelectMediaDeviceCallback.
  • Method Details

    • select

      static SelectMediaDeviceCallback.Response select(MediaDevice mediaDevice)
      Selects the given media device.

      Only the selected device will be visible to JavaScript.

      The mediaDevice must be one from the list of available devices in SelectMediaDeviceCallback.Params.mediaDevices().

      If an invalid device is passed to this method, the effect depends on what triggered the callback:

      • For getUserMedia() calls, the corresponding promise will be rejected with a NotFoundError.
      • For enumerateDevices() calls, all input devices will be excluded from the resulting device list.
      Parameters:
      mediaDevice - the media input device to use
    • proceed

      Allows Chromium to list the available media input devices.

      All media input devices of the requested type will be visible to JavaScript.

      • For getUserMedia() calls, Chromium will select the most suitable available device and use it for the media stream.
      • For enumerateDevices() calls, all available input devices will be included in the resulting device list.
      Since:
      8.10.0
    • cancel

      Cancels the media device selection.

      The effect depends on what triggered the callback:

      • For getUserMedia() calls, the corresponding promise will be rejected with a NotFoundError.
      • For enumerateDevices() calls, all input devices will be excluded from the resulting device list.
      Since:
      8.10.0