getUserMedia 方法
- [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));
}