Repository navigation
fix(read-aloud): pause reading when a page video plays - #44278
Merged
Yash-Singh1 merged 1 commit intoNov 27, 2026
Merged
Yash-Singh1 merged 1 commit into
Yash-Singh1 merged 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
|
@Yash-Singh1 quality of life improvement |
Yash-Singh1
merged commit Nov 27, 2026
f7d8c16
into
pingdotgg:feat/read-aloud-providers
38 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
When a video or audio element on the page starts to play, read aloud now pauses. Read aloud stays paused after the video stops. Press play on the read-aloud bar to continue.
Why
Before this change, read aloud continued to speak while a video in the chat played. The two sounds played together.
How
ReadAloudBaradds one capture listener for theplayevent ondocumentwhile the bar shows. Media events do not bubble, but a capture listener ondocumentreceives them from every<video>and<audio>element in the page. The read-aloud audio is a detachednew Audio(), so it does not pause itself.Limit: the listener does not see media inside iframes, such as embedded web previews.
Checks
vp lintand the web typecheck pass.🤖 Generated with Claude Code