From 4ff710aeb98984b58411b0c72eb04b1d7ce50ada Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Sat, 12 Nov 2022 13:40:24 +0800 Subject: [PATCH] release: 1.0.11. --- CHANGELOG.md | 4 ++++ lib/src/media_stream_impl.dart | 2 +- pubspec.yaml | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca8d256..56cda43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog -------------------------------------------- +[1.0.11] - 2022-11-12 + +* Change MediaStream.clone to async. + [1.0.10] - 2022-11-02 * Update MediaRecorder interface. diff --git a/lib/src/media_stream_impl.dart b/lib/src/media_stream_impl.dart index 46331a4..d68f895 100644 --- a/lib/src/media_stream_impl.dart +++ b/lib/src/media_stream_impl.dart @@ -58,7 +58,7 @@ class MediaStreamWeb extends MediaStream { bool? get active => jsStream.active; @override - MediaStream clone() { + Future clone() async { return MediaStreamWeb(jsStream.clone(), ownerTag); } } diff --git a/pubspec.yaml b/pubspec.yaml index 9d48f16..af3e3a7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,13 +1,13 @@ 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.0.10 +version: 1.0.11 homepage: https://github.com/flutter-webrtc/dart-webrtc environment: sdk: '>=2.13.0 <3.0.0' dependencies: - webrtc_interface: ^1.0.9 + webrtc_interface: ^1.0.10 dev_dependencies: build_runner: ^1.10.0