mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Do not skip silences if volume is 0 or video is muted
This commit is contained in:
@ -19,8 +19,16 @@ module.exports = () => {
|
||||
isSilent = false;
|
||||
});
|
||||
|
||||
speechEvents.on("stopped_speaking", function () {
|
||||
if (!(video.paused || video.seeking || video.ended)) {
|
||||
speechEvents.on("stopped_speaking", function () {
|
||||
if (
|
||||
!(
|
||||
video.paused ||
|
||||
video.seeking ||
|
||||
video.ended ||
|
||||
video.muted ||
|
||||
video.volume === 0
|
||||
)
|
||||
) {
|
||||
isSilent = true;
|
||||
skipSilence();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user