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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e44f2d..aa349e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ # Changelog -------------------------------------------- -[1.2.1] - 2025-02-07 +[1.2.2] - 2025-03-24 -* feat: expose rtc video value (#30) +* 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) [1.2.0] - 2024-04-08 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/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..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 +version: 1.2.2 homepage: https://flutter-webrtc.org environment: