flutter-webrtc/dart-webrtc

onRenegotiationNeeded callback no longer being called

DaveBubenik opened this issue · 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);