requestMicrophone method

Future<MediaStreamResult> requestMicrophone({
  1. String? deviceId,
})

Requests access to a microphone.

In browser builds this prompts the user. In this server-safe stub it returns an unsupported MediaStreamResult.

Implementation

Future<MediaStreamResult> requestMicrophone({String? deviceId}) {
  return Future.value(_unsupportedResult);
}