getUserMedia method

Future<MediaStream> getUserMedia([
  1. Map? constraints
])

Implementation

Future<MediaStream> getUserMedia([Map? constraints]) {
  var constraints_dict = null;
  if (constraints != null) {
    constraints_dict = convertDartToNative_Dictionary(constraints);
  }
  return promiseToFuture<MediaStream>(
    JS("creates:MediaStream;", "#.getUserMedia(#)", this, constraints_dict),
  );
}