tylercraft / jquery.audioslideshow

Audio slideshow using jQuery and jPlayer
20 stars 12 forks source link

Add audio volume controls #3

Open michaelguild13 opened 11 years ago

michaelguild13 commented 11 years ago

add this in

$that.find('.volume').slider({ value : 50, max: 100, range: 'min', animate: true, orientation: "vertical", slide: function(event, ui) { if(ui.value <= 80){ console.log(ui.value); var volume = ui.value / 100; $jPlayerObj.jPlayer("volume", volume); }else{ return false; }; } });