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)
|
function initYoutubeControls(player)
|
||||||
{
|
{
|
||||||
fitToScreen();
|
fitToScreen();
|
||||||
@@ -89,15 +87,13 @@ function changeQuality(wantedQ)
|
|||||||
|
|
||||||
function mute_video()
|
function mute_video()
|
||||||
{
|
{
|
||||||
if(!muted)
|
if(!ytplayer.isMuted())
|
||||||
{
|
{
|
||||||
choose_button(0, true);
|
choose_button(0, true);
|
||||||
ytplayer.mute();
|
ytplayer.mute();
|
||||||
muted = true;
|
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
ytplayer.unMute();
|
ytplayer.unMute();
|
||||||
muted = false;
|
|
||||||
choose_button(ytplayer.getVolume(), false);
|
choose_button(ytplayer.getVolume(), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user