Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Apr 15, 2024
1 parent 46428da commit f39b941
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

--------------------------------------------
[1.4.2] - 2024-04-15

* fix.

[1.4.1] - 2024-04-12

* remove RTCConfiguration convert.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/factory_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class RTCFactoryWeb extends RTCFactory {
],
};
final jsRtcPc = web.RTCPeerConnection(
{...constr, ...configuration} as web.RTCConfiguration);
jsify({...constr, ...configuration}) as web.RTCConfiguration);
final _peerConnectionId = base64Encode(jsRtcPc.toString().codeUnits);
return RTCPeerConnectionWeb(_peerConnectionId, jsRtcPc);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/rtc_peerconnection_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class RTCPeerConnectionWeb extends RTCPeerConnection {
@override
Future<void> setConfiguration(Map<String, dynamic> configuration) {
_configuration.addAll(configuration);
_jsPc.setConfiguration(configuration as web.RTCConfiguration);
_jsPc.setConfiguration(jsify(configuration) as web.RTCConfiguration);
return Future.value();
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dart_webrtc
description: Use the dart/js library to re-wrap the webrtc js interface of the browser, to adapted common browsers.
version: 1.4.1
version: 1.4.2
homepage: https://github.com/flutter-webrtc/dart-webrtc

environment:
Expand Down

0 comments on commit f39b941

Please sign in to comment.