requestCameraAndMicrophone method

Future<MediaStreamResult> requestCameraAndMicrophone({
  1. String? cameraDeviceId,
  2. String? microphoneDeviceId,
})

Requests camera and microphone access with a single browser prompt.

In browser builds optional device IDs constrain the selected devices. In this server-safe stub it returns an unsupported MediaStreamResult.

Implementation

Future<MediaStreamResult> requestCameraAndMicrophone({
  String? cameraDeviceId,
  String? microphoneDeviceId,
}) {
  return Future.value(_unsupportedResult);
}