Skip to content

Commit f39b941

Browse files
committed
fix.
1 parent 46428da commit f39b941

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

33
--------------------------------------------
4+
[1.4.2] - 2024-04-15
5+
6+
* fix.
7+
48
[1.4.1] - 2024-04-12
59

610
* remove RTCConfiguration convert.

lib/src/factory_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class RTCFactoryWeb extends RTCFactory {
4242
],
4343
};
4444
final jsRtcPc = web.RTCPeerConnection(
45-
{...constr, ...configuration} as web.RTCConfiguration);
45+
jsify({...constr, ...configuration}) as web.RTCConfiguration);
4646
final _peerConnectionId = base64Encode(jsRtcPc.toString().codeUnits);
4747
return RTCPeerConnectionWeb(_peerConnectionId, jsRtcPc);
4848
}

lib/src/rtc_peerconnection_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ class RTCPeerConnectionWeb extends RTCPeerConnection {
263263
@override
264264
Future<void> setConfiguration(Map<String, dynamic> configuration) {
265265
_configuration.addAll(configuration);
266-
_jsPc.setConfiguration(configuration as web.RTCConfiguration);
266+
_jsPc.setConfiguration(jsify(configuration) as web.RTCConfiguration);
267267
return Future.value();
268268
}
269269

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dart_webrtc
22
description: Use the dart/js library to re-wrap the webrtc js interface of the browser, to adapted common browsers.
3-
version: 1.4.1
3+
version: 1.4.2
44
homepage: https://github.com/flutter-webrtc/dart-webrtc
55

66
environment:

0 commit comments

Comments
 (0)