Skip to content

Fix: Solving the MUTED issue when using video-rtc.js & Added an "onplay" event triggered when playback starts#4639

Open
IgorA100 wants to merge 8 commits intoZoneMinder:masterfrom
IgorA100:patch-885163
Open

Fix: Solving the MUTED issue when using video-rtc.js & Added an "onplay" event triggered when playback starts#4639
IgorA100 wants to merge 8 commits intoZoneMinder:masterfrom
IgorA100:patch-885163

Conversation

@IgorA100
Copy link
Contributor

@IgorA100 IgorA100 commented Feb 19, 2026

When using video-rtc.js (Go2RTC) on the Watch page, after hiding and then re-displaying the page, muted mode spontaneously re-enables after 15 seconds.
I decided to make a correction to video-rtc.js here, as this file had already been modified and differs from the original https://github.com/AlexxIT/go2rtc/blob/master/www/video-rtc.js

I also created a PR in the Go2RTC developer repository AlexxIT/go2rtc#2102

Adding the "onplay" event will allow for more flexible handling of the playback start event.

…nitorStream.js)

Due to desynchronization, for example, on the Watch page, after hiding and then re-displaying the page, muted mode spontaneously re-enables after 15 seconds.
This is a temporary solution and requires further analysis.
@IgorA100 IgorA100 marked this pull request as draft February 19, 2026 22:01
@IgorA100 IgorA100 changed the title Fix: Fix desync between audioStream.muted and MonitorStream.muted Fix: Solving the MUTED issue when using video-rtc.js Feb 20, 2026
@IgorA100 IgorA100 marked this pull request as ready for review February 20, 2026 14:23
@IgorA100 IgorA100 marked this pull request as draft February 20, 2026 14:41
This will avoid a warning like
`DOMException: The play() request was interrupted by a new load request.`
@IgorA100 IgorA100 marked this pull request as ready for review February 21, 2026 19:35
@IgorA100 IgorA100 marked this pull request as draft February 23, 2026 13:08
@IgorA100 IgorA100 changed the title Fix: Solving the MUTED issue when using video-rtc.js Fix: Solving the MUTED issue when using video-rtc.js & Added an "onplay" event triggered when playback starts Feb 23, 2026
@IgorA100 IgorA100 marked this pull request as ready for review February 23, 2026 16:12
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.

1 participant