dart-webrtc
dart-webrtc copied to clipboard
remove js_util
Fixes #48
Note that platform_detect is still a blocker on wasm builds, but that's the last one after this.
Incorrect type casting at https://github.com/jezell/dart-webrtc/blob/a6a18675e48fc7d6b89aa798a18283add17a6b60/lib/src/rtc_rtp_transceiver_impl.dart#L116
Should be
_jsTransceiver.setCodecPreferences(codecs
.map((e) => e.toMap().jsify())
.toList()
.toJS as JSArray<web.RTCRtpCodec>);
looks good to me. e2ee compiles fine, but runs with an error that I'm still trying to fix it.
@cloudwebrtc
Maybe this that I just pushed will fix?
I get another error, it seems that the web package can't run correctly under the web worker
when I try to print the web.window.crypto object
TypeError: null: type 'JSNull' is not a subtype of type 'JSObject'