JQery /HTML5 Audio file Fade
in Using jQuery
•
8 years ago
hi
About a year ago I was involved with Jakecigar's great
scrollsound control code found on the post 'Audio fading in and
out scroll position' and 'Jquery/HTML5 Audio file Fade 2'
I cannot figure out how to implement the pause/play functionality.
I would like to pause and then play ALL of the 'soundTour'
music files ( regardless of where the user is scrolled to on the
browser page. In other words, pause all sounds. I've managed to
stop the sound with
$('#soundTour3,#soundTour2,#soundTour1').scrollPlay({
play:false
});
});
But to reactivate the sound I'm at a loss. I've tried :
$('#soundTour3,#soundTour2,#soundTour1').scrollPlay({
play:true
});
});
But that doesn't work. Any
suggestions? Also to further complicate things. The user may or may
not click on an entirely different set of sound files available on
the site ( independant to the soundscroll music ). I don't want
to interfere with these sounds. As well, if the user clicks one of
the independant sounds it must pause (interrupt) the sound scroll
sound. Don't want 2 songs playing at the same time.
Any help would be appreciated,
Jaimmy
1