Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. audioPlayer.operate_ = audioPlayer.operate;
  2. audioPlayer.operate = function(a1, a2, a3) {
  3. if (a1 == currentAudioId()) if (audioPlayer.player.paused() == false) {
  4. console.log('Paused ' + a1);
  5. return audioPlayer.operate_(a1, a2, a3);
  6. }
  7. console.log('Play ' + a1);
  8. return audioPlayer.operate_(a1, a2, a3);
  9. }
  10.  
  11. audioPlayer.getPrPos_ = audioPlayer.getPrPos;
  12. audioPlayer.getPrPos = function(a1, a2) {
  13. var res = audioPlayer.getPrPos_(a1, a2);
  14. if (a1.type == 'mousedown') {
  15. console.log('Volume change - ' + res);
  16. }
  17. return res;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement