mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed more mute bug
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
var muted = false;
|
||||
|
||||
function initYoutubeControls(player)
|
||||
{
|
||||
fitToScreen();
|
||||
@@ -89,15 +87,13 @@ function changeQuality(wantedQ)
|
||||
|
||||
function mute_video()
|
||||
{
|
||||
if(!muted)
|
||||
if(!ytplayer.isMuted())
|
||||
{
|
||||
choose_button(0, true);
|
||||
ytplayer.mute();
|
||||
muted = true;
|
||||
}else
|
||||
{
|
||||
ytplayer.unMute();
|
||||
muted = false;
|
||||
choose_button(ytplayer.getVolume(), false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user