createMicrophoneSource method

Future<WAMediaStreamSourceNode> createMicrophoneSource()

Creates a microphone source node. On Web, this triggers the permission prompt and gets the stream. On Native, this opens the default input device.

Implementation

Future<WAMediaStreamSourceNode> createMicrophoneSource() async {
  final stream = await backend.getWebMicrophoneStream();
  return createMediaStreamSource(stream);
}