Skip to content

Coordinate video and voice playback resources#1507

Merged
mubarakcoded merged 3 commits into
masterfrom
sweep/1501-1502-media-playback
Jul 17, 2026
Merged

Coordinate video and voice playback resources#1507
mubarakcoded merged 3 commits into
masterfrom
sweep/1501-1502-media-playback

Conversation

@mubarakcoded

@mubarakcoded mubarakcoded commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • give both Media3 video players audio-focus handling and pause active voice notes before playback
  • preserve voice playback across transient focus loss and duck on duckable interruptions
  • prepare pager videos only while current and stop off-screen players to release decoders
  • add regression coverage for audio-focus and decoder ownership policies

Verification

  • git diff --check
  • Local Gradle tests intentionally not run for this fast sweep; CI will validate the branch.

Closes #1501
Closes #1502


Open in Stage

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 56 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0dc76cc3-64bc-4256-8360-153dd1c0e85b

📥 Commits

Reviewing files that changed from the base of the PR and between 0d960ce and 64e5d23.

📒 Files selected for processing (5)
  • app/src/main/java/dev/ipf/whitenoise/android/audio/VoicePlaybackController.kt
  • app/src/main/java/dev/ipf/whitenoise/android/ui/conversation/media/MediaVideo.kt
  • app/src/test/java/dev/ipf/whitenoise/android/audio/VoicePlaybackAudioFocusPolicyCoverageTest.kt
  • app/src/test/java/dev/ipf/whitenoise/android/audio/VoicePlaybackControllerFocusTest.kt
  • app/src/test/java/dev/ipf/whitenoise/android/ui/VideoPlaybackCoordinationCoverageTest.kt
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch sweep/1501-1502-media-playback

Comment @coderabbitai help to get the list of available commands.

@stage-review

stage-review Bot commented Jul 17, 2026

Copy link
Copy Markdown

Ready to review this PR? Stage has broken it down into 3 individual chapters for you:

Title
1 Enhance voice playback audio focus handling
2 Coordinate video players with voice playback
3 Verify audio focus and coordination policies
Open in Stage

Chapters generated by Stage for commit 64e5d23 on Jul 17, 2026 12:01pm UTC.

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

Preview APK for PR #1507

Home-screen label: 1507 White Noise with the blueprint launcher icon — installs side-by-side with the production and staging apps.

Install directly — one tap, no GitHub sign-in (public, content-addressed .apk). ARM64 only.

Every push to this PR rebuilds and updates this comment.

@mubarakcoded
mubarakcoded merged commit 8b37772 into master Jul 17, 2026
4 checks passed
@mubarakcoded
mubarakcoded deleted the sweep/1501-1502-media-playback branch July 17, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant