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

setVolume function is not working in ios #76

Open
arghyaExicube opened this issue Dec 13, 2018 · 1 comment
Open

setVolume function is not working in ios #76

arghyaExicube opened this issue Dec 13, 2018 · 1 comment
Labels

Comments

@arghyaExicube
Copy link

arghyaExicube commented Dec 13, 2018

I am doing an angular app.which i have implemented youtube player.
setVolume(50) function is working in browser and android, but not working in ios.
here is my code:

    this.player = YouTubePlayer('existing-iframe-example',{
      height: '320px',
      width: '100%',
      // videoId: 'gtiriqJ_HrA',
      playerVars: {
        'autoplay': 1, 
        'rel': 0, 
        'controls': 1, 
        'fs': 1, 
        'playsinline': 1, 
        'listType': 'playlist', 
        'list': 'PLNI-cJa63vBKN5r5GRGq5anqJeZ_hwWCw', 
        'enablejsapi': 1,
        'showinfo':0
      },
    });
    
    this.player.on('ready', (event) => {
      console.log(event);
      this.player.setVolume(0);

  }

please help me.Thanks..

@gajus gajus added the question label Dec 13, 2018
@drewbaker
Copy link

Did you ever get this to work? I could never get the ready event to fire with with an existing iFrame.

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

No branches or pull requests

3 participants