Skip to content

Fix: Sync background notification volume with video player#1427

Open
kimjin8 wants to merge 1 commit into
CaptainFact:stagingfrom
kimjin8:fix/sync-notification-volume
Open

Fix: Sync background notification volume with video player#1427
kimjin8 wants to merge 1 commit into
CaptainFact:stagingfrom
kimjin8:fix/sync-notification-volume

Conversation

@kimjin8
Copy link
Copy Markdown

@kimjin8 kimjin8 commented May 20, 2026

Fixes CaptainFact/captain-fact#93

Summary

  • Added volume state to VideoPlaybackContext
  • Passed onVolumeChange from ReactPlayer to update the context volume using the direct numeric argument (avoids the event.target.volume undefined bug )
  • Applied the context volume to the Audio elements in BackgroundNotifier before playback

This ensures background notifications scale with the user's video volume — no more loud notifications when the video is quiet.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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.

Adapt background sound volume based on video volume

1 participant