Closed
Description
This tracker is for issues related to:
- dart2js
If you aren't sure, file the issue here and we'll find the right home for it.
In your issue, please include:
- Dart SDK Version (
dart --version
)
Dart SDK version: 2.11.0-242.0.dev (dev) (Wed Oct 21 00:38:45 2020 -0700) on "windows_x64"
When calling
final mediaConstraints = <String, dynamic>{
'audio': true,
'video': {
'mandatory': {
'minWidth': '1280',
'minHeight': '720',
'minFrameRate': '30',
},
}
};
var stream = await navigator.getUserMedia(mediaConstraints);
var _capabilities = stream.getVideoTracks()[0].getCapabilities();
If you inspect the map, you will have for example a NativeJavaScriptObject
_capabilities['aspectRatio']
_capabilities['width']
_capabilities['frameRate']
etc...
Seems to me a problem converting javascript type to dart equivalent.(double and int)
I just want to mention: @srujzs
Since the last commit was involving a similar problem, but in the opposite direction :-)
The method that is doing the conversion is:
convertNativeToDart_Dictionary