Hide unmute buttons after segment is finished

This commit is contained in:
Ajay Ramachandran
2021-09-01 21:03:32 -04:00
parent 4092bf9b05
commit 60e54ee129
3 changed files with 23 additions and 2 deletions

View File

@@ -417,6 +417,11 @@ function startSponsorSchedule(includeIntersectingSegments = false, currentTime?:
if (videoMuted && !inMuteSegment(currentTime)) {
video.muted = false;
videoMuted = false;
for (const notice of skipNotices) {
// So that the notice can hide buttons
notice.unmutedListener();
}
}
if (Config.config.disableSkipping || channelWhitelisted || (channelIDInfo.status === ChannelIDStatus.Fetching && Config.config.forceChannelCheck)){