dart-lang/sdk

RTCPeerConnection missing connectionState property

cterefinko opened this issue · 3 comments

html_dart2js is missing the native js property connectionState and an onConnectionStateChange handler for RTCPeerConnection.

Pinging @srujzs

I think this is possibly a simple fix, but haven't dug much into it yet. It seems like we need to add that property and create a separate static EventStreamProvider for connectionstatechange. It seems like it should be possible to workaround this with interop, however, using js_util and addEventListener.

Since I'd like to to update dart-webrtc to use these, I think it'd be nice to not have to use interop.

I sent out https://dart-review.googlesource.com/c/sdk/+/240240 for review, but it was unclear to me if there was anything else that needed to be updated.