Skip to content

Conversation

@renefloor
Copy link
Contributor

@renefloor renefloor commented Jul 11, 2025

🎯 Goal

Run dogfooding on windows.

Related PR: GetStream/webrtc-flutter#37

🛠 Implementation details

Mostly automated changes, the only real change is in audio_constraints.dart

{'DtlsSrtpKeyAgreement': true},

☑️Contributor Checklist

General

  • Assigned a person / code owner group (required)
  • Thread with the PR link started in a respective Slack channel (#flutter-team) (required)
  • PR is linked to the GitHub issue it resolves

☑️Reviewer Checklist

  • Sample runs & works
  • UI Changes correct (before & after images)
  • Bugs validated (bugfixes)
  • New feature tested and works
  • All code we touched has new or updated Documentation

Summary by CodeRabbit

  • Bug Fixes

    • Improved compatibility by updating the audio constraints configuration for secure media connections.
  • Chores

    • Removed the volume controller plugin from Linux and Windows platforms.
    • Added the screen brightness plugin for Windows.
    • Enhanced Windows build configuration to support dynamic platform specification.
    • Updated dependency versions for stream_webrtc_flutter across multiple packages.

@renefloor renefloor requested a review from a team as a code owner July 11, 2025 08:38
@coderabbitai
Copy link

coderabbitai bot commented Jul 11, 2025

Walkthrough

The updates remove the volume_controller plugin from both Linux and Windows Flutter plugin registries, replacing it with screen_brightness_windows on Windows. The Windows CMake build script now dynamically sets the target platform with a fallback. Additionally, the audio constraints in the WebRTC package are updated to use a boolean for DTLS-SRTP key agreement. Several package dependency constraints for stream_webrtc_flutter were updated to a newer version.

Changes

Cohort / File(s) Change Summary
Linux plugin removal
dogfooding/linux/flutter/generated_plugin_registrant.cc, dogfooding/linux/flutter/generated_plugins.cmake
Removed all references to the volume_controller plugin from Linux plugin registration and CMake list.
Windows plugin update
dogfooding/windows/flutter/generated_plugins.cmake
Removed volume_controller and added screen_brightness_windows to the Windows plugin list.
Windows build configuration
dogfooding/windows/flutter/CMakeLists.txt
Made FLUTTER_TARGET_PLATFORM configurable with a default fallback to windows-x64.
WebRTC audio constraints fix
packages/stream_video/lib/src/webrtc/media/audio_constraints.dart
Changed 'DtlsSrtpKeyAgreement' value from string 'true' to boolean true in audio constraints.
Dependency version updates
melos.yaml, packages/stream_video/pubspec.yaml, packages/stream_video_flutter/example/pubspec.yaml, packages/stream_video_flutter/pubspec.yaml, packages/stream_video_noise_cancellation/pubspec.yaml, packages/stream_video_push_notification/pubspec.yaml
Updated stream_webrtc_flutter dependency version constraint from ^1.0.9 to ^1.0.10 across multiple packages.

Sequence Diagram(s)

sequenceDiagram
    participant BuildScript as CMakeLists.txt
    participant Env as Environment
    participant FlutterTool as Flutter Backend

    BuildScript->>Env: Check FLUTTER_TARGET_PLATFORM
    alt Variable is set
        BuildScript->>FlutterTool: Use FLUTTER_TARGET_PLATFORM
    else Not set
        BuildScript->>Env: Set FLUTTER_TARGET_PLATFORM to "windows-x64"
        BuildScript->>FlutterTool: Use default "windows-x64"
    end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested reviewers

  • renefloor

Poem

A plugin departs, a new one arrives,
Bright screens for Windows, as volume survives.
Linux grows lighter, the code is now clean,
Audio constraints truer, as rabbits convene.
With platforms more nimble,
Our builds hop and mingle!
🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4781f76 and e41f5b2.

📒 Files selected for processing (6)
  • melos.yaml (1 hunks)
  • packages/stream_video/pubspec.yaml (1 hunks)
  • packages/stream_video_flutter/example/pubspec.yaml (1 hunks)
  • packages/stream_video_flutter/pubspec.yaml (1 hunks)
  • packages/stream_video_noise_cancellation/pubspec.yaml (1 hunks)
  • packages/stream_video_push_notification/pubspec.yaml (1 hunks)
✅ Files skipped from review due to trivial changes (6)
  • packages/stream_video_flutter/pubspec.yaml
  • packages/stream_video/pubspec.yaml
  • packages/stream_video_flutter/example/pubspec.yaml
  • melos.yaml
  • packages/stream_video_push_notification/pubspec.yaml
  • packages/stream_video_noise_cancellation/pubspec.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: stream_video_screen_sharing
  • GitHub Check: stream_video_push_notification
  • GitHub Check: stream_video_flutter
  • GitHub Check: stream_video
  • GitHub Check: stream_video_noise_cancellation
  • GitHub Check: analyze_legacy_version
  • GitHub Check: analyze
  • GitHub Check: build
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/run-dogfooding-on-windows

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@renefloor renefloor changed the title Fixes to run video on windows fix(llc, samples): to run video on windows Jul 11, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 650befb and 2005c0a.

📒 Files selected for processing (5)
  • dogfooding/linux/flutter/generated_plugin_registrant.cc (0 hunks)
  • dogfooding/linux/flutter/generated_plugins.cmake (0 hunks)
  • dogfooding/windows/flutter/CMakeLists.txt (2 hunks)
  • dogfooding/windows/flutter/generated_plugins.cmake (1 hunks)
  • packages/stream_video/lib/src/webrtc/media/audio_constraints.dart (1 hunks)
💤 Files with no reviewable changes (2)
  • dogfooding/linux/flutter/generated_plugins.cmake
  • dogfooding/linux/flutter/generated_plugin_registrant.cc
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: build
  • GitHub Check: analyze
  • GitHub Check: analyze_legacy_version
  • GitHub Check: stream_video_flutter
  • GitHub Check: stream_video_screen_sharing
  • GitHub Check: stream_video_noise_cancellation
  • GitHub Check: stream_video_push_notification
  • GitHub Check: stream_video
🔇 Additional comments (2)
packages/stream_video/lib/src/webrtc/media/audio_constraints.dart (1)

56-56: LGTM! Type consistency improvement for WebRTC constraints.

The change from string 'true' to boolean true is correct and improves type consistency with WebRTC standards. This aligns with other boolean constraints in the same array and ensures proper WebRTC functionality across platforms.

dogfooding/windows/flutter/CMakeLists.txt (1)

13-16: Excellent defensive programming approach.

The fallback mechanism for FLUTTER_TARGET_PLATFORM is well-implemented and improves the robustness of the Windows build configuration. This allows for dynamic platform specification while providing a sensible default.

@codecov
Copy link

codecov bot commented Jul 11, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 4.83%. Comparing base (b3a7f14) to head (e41f5b2).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
..._video/lib/src/webrtc/media/audio_constraints.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1023   +/-   ##
=====================================
  Coverage   4.83%   4.83%           
=====================================
  Files        577     577           
  Lines      38802   38802           
=====================================
  Hits        1875    1875           
  Misses     36927   36927           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@renefloor renefloor enabled auto-merge (squash) August 6, 2025 14:13
@renefloor renefloor disabled auto-merge August 7, 2025 09:16
@renefloor renefloor merged commit 62811bf into main Aug 7, 2025
14 of 15 checks passed
@renefloor renefloor deleted the fix/run-dogfooding-on-windows branch August 7, 2025 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants