Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- audioPlayer.operate_ = audioPlayer.operate;
- audioPlayer.operate = function(a1, a2, a3) {
- if (a1 == currentAudioId()) if (audioPlayer.player.paused() == false) {
- console.log('Paused ' + a1);
- return audioPlayer.operate_(a1, a2, a3);
- }
- console.log('Play ' + a1);
- return audioPlayer.operate_(a1, a2, a3);
- }
- audioPlayer.getPrPos_ = audioPlayer.getPrPos;
- audioPlayer.getPrPos = function(a1, a2) {
- var res = audioPlayer.getPrPos_(a1, a2);
- if (a1.type == 'mousedown') {
- console.log('Volume change - ' + res);
- }
- return res;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement