getUserMedia 方法

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

实现

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));
}