Slider Revolution WP
09.27.2016
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
/* set volume below from 0-100, in increments of 10 (i.e. 10, 20, 30, etc.) */ var newVolume = 50; /* replace "revapi44" with your slider's API value */ /* https://www.themepunch.com/revslider-doc/slider-settings/#api */ revapi44.on('revolution.slide.layeraction', function(e, data) { if(data.eventtype === 'enteredstage' && data.layertype === 'video') { data.layer.find('.tp-volume-bar').attr('value', newVolume * 0.01); } }).on('revolution.slide.onvideoplay', function(e, data) { data.video.volume = newVolume * 0.01; }); |
1 2 3 4 5 6 7 8 9 10 11 12 |
/* set volume below from 0-100, in increments of 10 (i.e. 10, 20, 30, etc.) */ var newVolume = 50; /* replace "revapi44" with your slider's API value */ /* https://www.themepunch.com/revslider-doc/slider-settings/#api */ revapi44.on('revolution.slide.onvideoplay', function(e, data) { data.video.volume = newVolume * 0.01; }); |