Interface SelectMediaDeviceCallback.Response
- Enclosing interface:
- SelectMediaDeviceCallback
public static interface SelectMediaDeviceCallback.Response
A response for the
SelectMediaDeviceCallback.-
Method Summary
Static MethodsModifier and TypeMethodDescriptioncancel()Cancels the media device selection.proceed()Allows Chromium to list the available media input devices.select(MediaDevice mediaDevice) Selects the given media device.
-
Method Details
-
select
Selects the given media device.Only the selected device will be visible to JavaScript.
The
mediaDevicemust be one from the list of available devices inSelectMediaDeviceCallback.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 aNotFoundError. - For
enumerateDevices()calls, all input devices will be excluded from the resulting device list.
- Parameters:
mediaDevice- the media input device to use
- For
-
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
- For
-
cancel
Cancels the media device selection.The effect depends on what triggered the callback:
- For
getUserMedia()calls, the corresponding promise will be rejected with aNotFoundError. - For
enumerateDevices()calls, all input devices will be excluded from the resulting device list.
- Since:
- 8.10.0
- For
-