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

set audio volume? #76

Open
ETrko opened this issue Aug 6, 2018 · 1 comment
Open

set audio volume? #76

ETrko opened this issue Aug 6, 2018 · 1 comment

Comments

@ETrko
Copy link

ETrko commented Aug 6, 2018

anything possible? its like 300% for me

@sdp49
Copy link

sdp49 commented Apr 24, 2019

You can add icon on frontend and use the VolumeClass like below:

$('body').on('click','.'+self.options.volumeUpClass,function(){ self.player.setVolume(parseInt(self.player.getVolume())+1); }); $('body').on('click','.'+self.options.volumeDownClass,function(){ self.player.setVolume(parseInt(self.player.getVolume())-1); });

Add above code after line 151 , after this code:
// Listen for Resize Event self.$window.on('resize.YTplayer' + self.ID, function() { self.resize(self); });

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

2 participants