mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 04:41: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;
|
isSilent = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
speechEvents.on("stopped_speaking", function () {
|
speechEvents.on("stopped_speaking", function () {
|
||||||
if (!(video.paused || video.seeking || video.ended)) {
|
if (
|
||||||
|
!(
|
||||||
|
video.paused ||
|
||||||
|
video.seeking ||
|
||||||
|
video.ended ||
|
||||||
|
video.muted ||
|
||||||
|
video.volume === 0
|
||||||
|
)
|
||||||
|
) {
|
||||||
isSilent = true;
|
isSilent = true;
|
||||||
skipSilence();
|
skipSilence();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user