dart-webrtc icon indicating copy to clipboard operation
dart-webrtc copied to clipboard

remove js_util

Open jezell opened this issue 1 year ago • 1 comments

Fixes #48

jezell avatar Sep 20 '24 21:09 jezell

Note that platform_detect is still a blocker on wasm builds, but that's the last one after this.

jezell avatar Sep 20 '24 21:09 jezell

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

theniceboy avatar Nov 05 '24 23:11 theniceboy

looks good to me. e2ee compiles fine, but runs with an error that I'm still trying to fix it.

image

cloudwebrtc avatar Dec 16 '24 08:12 cloudwebrtc

@cloudwebrtc

Screenshot 2024-12-17 at 12 42 00 AM

Maybe this that I just pushed will fix?

jezell avatar Dec 17 '24 08:12 jezell

I get another error, it seems that the web package can't run correctly under the web worker

image

when I try to print the web.window.crypto object

TypeError: null: type 'JSNull' is not a subtype of type 'JSObject'
image

cloudwebrtc avatar Dec 19 '24 02:12 cloudwebrtc