From cbf26706883c14e2883a7a5889f8b3eba5430e33 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Sun, 23 Feb 2025 09:55:22 +0800 Subject: [PATCH 1/7] release: 1.2.1+hotfix.1. --- CHANGELOG.md | 4 ++-- lib/src/rtc_video_renderer.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e44f2d..36d8043 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,9 @@ # Changelog -------------------------------------------- -[1.2.1] - 2025-02-07 +[1.2.1+hotfix.1] - 2025-02-023 -* feat: expose rtc video value (#30) +* fix: make videoValue non nullable (#30) * fix: make optional cname in RTCRTCPParameters nullable (#27) [1.2.0] - 2024-04-08 diff --git a/lib/src/rtc_video_renderer.dart b/lib/src/rtc_video_renderer.dart index 6d6cc4f..671ee33 100644 --- a/lib/src/rtc_video_renderer.dart +++ b/lib/src/rtc_video_renderer.dart @@ -54,7 +54,7 @@ abstract class VideoRenderer { int get videoHeight; - RTCVideoValue get videoValue; + RTCVideoValue get videoValue => RTCVideoValue(); bool get muted; set muted(bool mute); diff --git a/pubspec.yaml b/pubspec.yaml index 3afd479..ea5cb18 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: webrtc_interface description: WebRTC Interface for Dart-Web/Flutter. -version: 1.2.1 +version: 1.2.1+hotfix.1 homepage: https://flutter-webrtc.org environment: From 87977515f9387b82d26890afe14bff0e51f5bcfc Mon Sep 17 00:00:00 2001 From: CloudWebRTC Date: Sun, 23 Feb 2025 09:56:54 +0800 Subject: [PATCH 2/7] Update publish.yaml --- .github/workflows/publish.yaml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4ae46b2..6d79fe4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,21 +1,14 @@ -name: Publish plugin +name: Publish to pub.dev on: - release: - types: [published] + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' jobs: publish: - - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v1 - - name: Publish - uses: sakebook/actions-flutter-pub-publisher@v1.3.1 - with: - credential: ${{ secrets.CREDENTIAL_JSON }} - flutter_package: true - skip_test: true - dry_run: false + permissions: + id-token: write # Required for authentication using OIDC + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 + # with: + # working-directory: path/to/package/within/repository From d6aabf72a1dbb303b5697da409e646acc093ddbf Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Mon, 24 Mar 2025 11:28:18 +0800 Subject: [PATCH 3/7] release: 1.2.2. --- CHANGELOG.md | 6 +++++- lib/src/rtc_data_channel.dart | 3 +++ pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36d8043..aa349e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ # Changelog -------------------------------------------- -[1.2.1+hotfix.1] - 2025-02-023 +[1.2.2] - 2025-03-24 + +* add getBufferedAmount for RTCDataChannel. + +[1.2.1+hotfix.1] - 2025-02-23 * fix: make videoValue non nullable (#30) * fix: make optional cname in RTCRTCPParameters nullable (#27) diff --git a/lib/src/rtc_data_channel.dart b/lib/src/rtc_data_channel.dart index de5692f..8ff4c47 100644 --- a/lib/src/rtc_data_channel.dart +++ b/lib/src/rtc_data_channel.dart @@ -80,6 +80,9 @@ abstract class RTCDataChannel { int? get bufferedAmount; + /// Get the buffered amount from native DC. + Future getBufferAmount() => throw UnimplementedError(); + /// Set threshold to trigger onBufferedAmountLow callback int? bufferedAmountLowThreshold; diff --git a/pubspec.yaml b/pubspec.yaml index ea5cb18..8f99df9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: webrtc_interface description: WebRTC Interface for Dart-Web/Flutter. -version: 1.2.1+hotfix.1 +version: 1.2.2 homepage: https://flutter-webrtc.org environment: From d516169ce2f07b0dcf9aa4f89ec72430f48a8773 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Mon, 24 Mar 2025 11:32:51 +0800 Subject: [PATCH 4/7] update. --- CHANGELOG.md | 4 ++++ lib/src/rtc_data_channel.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa349e7..65fc256 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog -------------------------------------------- +[1.2.2+hotfix.1] - 2025-03-24 + +* rename getBufferAmount to getBufferedAmount. + [1.2.2] - 2025-03-24 * add getBufferedAmount for RTCDataChannel. diff --git a/lib/src/rtc_data_channel.dart b/lib/src/rtc_data_channel.dart index 8ff4c47..bc15e11 100644 --- a/lib/src/rtc_data_channel.dart +++ b/lib/src/rtc_data_channel.dart @@ -81,7 +81,7 @@ abstract class RTCDataChannel { int? get bufferedAmount; /// Get the buffered amount from native DC. - Future getBufferAmount() => throw UnimplementedError(); + Future getBufferedAmount() => throw UnimplementedError(); /// Set threshold to trigger onBufferedAmountLow callback int? bufferedAmountLowThreshold; diff --git a/pubspec.yaml b/pubspec.yaml index 8f99df9..e1f5e38 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: webrtc_interface description: WebRTC Interface for Dart-Web/Flutter. -version: 1.2.2 +version: 1.2.2+hotfix.1 homepage: https://flutter-webrtc.org environment: From 9ddf6802e709fc7b970102750ab3e4b012b0e4b8 Mon Sep 17 00:00:00 2001 From: daniel-g-favoreto-opl <112583028+daniel-g-favoreto-opl@users.noreply.github.com> Date: Tue, 29 Apr 2025 01:51:23 -0300 Subject: [PATCH 5/7] Media recording changes (#31) * [WIP] Add MediaRecorder for iOS and OSX Don't merge yet! Work in progress. PR will be ready soon. * Add rotation parameter and changeVideoTrack Those will be implemented soon * add album name * update albumName * review changes --------- Co-authored-by: Dima Rostopira --- lib/src/media_recorder.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/media_recorder.dart b/lib/src/media_recorder.dart index 0f51849..fa84cf6 100644 --- a/lib/src/media_recorder.dart +++ b/lib/src/media_recorder.dart @@ -3,8 +3,9 @@ import 'media_stream.dart'; import 'media_stream_track.dart'; abstract class MediaRecorder { - /// For Android use audioChannel param - /// For iOS use audioTrack + /// Starts recording to file at [path]. + /// Optionally, on Android choose [audioChannel] to record. + /// On web platform use [startWeb] instead. Future start( String path, { MediaStreamTrack? videoTrack, @@ -19,5 +20,5 @@ abstract class MediaRecorder { int timeSlice = 1000, }); - Future stop(); + Future stop({String? albumName}); } From be0094c1ce32368019c6e140f500fc6298af7564 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Tue, 29 Apr 2025 13:18:24 +0800 Subject: [PATCH 6/7] release: 1.2.3. --- CHANGELOG.md | 4 ++++ pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65fc256..f3a5a8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog -------------------------------------------- +[1.2.3] - 2025-04-29 + +* Media recording changes (#31). + [1.2.2+hotfix.1] - 2025-03-24 * rename getBufferAmount to getBufferedAmount. diff --git a/pubspec.yaml b/pubspec.yaml index e1f5e38..ced39c5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: webrtc_interface description: WebRTC Interface for Dart-Web/Flutter. -version: 1.2.2+hotfix.1 +version: 1.2.3 homepage: https://flutter-webrtc.org environment: From 51ad29dc4223b13ea4e13e63a3b6016dccff14b3 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Tue, 6 May 2025 11:52:07 +0800 Subject: [PATCH 7/7] revert destructive changes. --- lib/src/media_recorder.dart | 2 +- lib/src/rtc_video_renderer.dart | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/src/media_recorder.dart b/lib/src/media_recorder.dart index fa84cf6..7a4d574 100644 --- a/lib/src/media_recorder.dart +++ b/lib/src/media_recorder.dart @@ -20,5 +20,5 @@ abstract class MediaRecorder { int timeSlice = 1000, }); - Future stop({String? albumName}); + Future stop(); } diff --git a/lib/src/rtc_video_renderer.dart b/lib/src/rtc_video_renderer.dart index 671ee33..7734fd3 100644 --- a/lib/src/rtc_video_renderer.dart +++ b/lib/src/rtc_video_renderer.dart @@ -41,8 +41,6 @@ class RTCVideoValue { } abstract class VideoRenderer { - VideoRenderer(); - /// When the video size changes, or the native texture /// changes (angle or size), notify the user to redraw the Widget. Function? onResize; @@ -54,8 +52,6 @@ abstract class VideoRenderer { int get videoHeight; - RTCVideoValue get videoValue => RTCVideoValue(); - bool get muted; set muted(bool mute);