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

onRenegotiationNeeded callback no longer being called

Open DaveBubenik opened this issue 1 year ago • 0 comments

The onRenegotiationNeeded is never called. This is being caused by a bug introduced in version 1.3.0 of the library.

The issue is occurring because the webrtc event listener is listening to the wrong event in rtc_peerconnection_impl.dart.

The following code is incorrect: _jsPc.addEventListener( 'onnegotiationneeded', (_) { onRenegotiationNeeded?.call(); }.toJS);

It should be updated to: _jsPc.addEventListener( 'negotiationneeded', (_) { onRenegotiationNeeded?.call(); }.toJS);

DaveBubenik avatar May 02 '24 14:05 DaveBubenik