Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Mute on Safari #42

Open
ariona opened this issue Apr 12, 2016 · 5 comments
Open

No Mute on Safari #42

ariona opened this issue Apr 12, 2016 · 5 comments

Comments

@ariona
Copy link

ariona commented Apr 12, 2016

The video won't mute in Safari (El Capitan) even with mute option set to true. I have check the demo page on safari and it also not muted.

@bento-n-box
Copy link
Owner

This is an issue when loading the static file. This does not occur when leveraging the plugin on a site that is not static.

@LittleBlueDot
Copy link

LittleBlueDot commented May 19, 2016

I had the some problem. Manage to solve with player.mute(); All code looks like this:

$('#background-video').YTPlayer({
          videoId: 'ID of video',
          playerVars: {
            modestbranding: 0,
            autoplay: 1,
            controls: 1,
            showinfo: 0,
            wmode: 'transparent',
            branding: 0,
            rel: 0,
            autohide: 0,
            origin: window.location.origin
            },
            events: {
                'onReady': onPlayerReady
            }
        });
      function onPlayerReady() {
        var player = $('#background-video').data('ytPlayer').player;
        player.mute();
       }
 });```

@bento-n-box
Copy link
Owner

@LittleBlueDot I like that solution. I have similar code in the src file but for whatever reason it isn't working when running from a static file.

@sedemik
Copy link

sedemik commented May 23, 2016

The sounds works on Safari even I have muted it. But if I want to use sound on every other browsers how can I do it?

I have tried mute: false and it is not working. I have take that off too and nothing happend. I have set up vol: 80 but not succeed.

@victordieggo
Copy link

I had the same problem with IE9/Safari but when I updated the jquery library embedded to the page to v2.2.4, this issue was solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants