builtbywill / booklet

jQuery Plugin - display web content in a flipbook
http://builtbywill.com/booklet
Other
291 stars 109 forks source link

How to start stop a video or mp3 player when changing a page #14

Closed pietaleski closed 10 years ago

pietaleski commented 11 years ago

How to auto start stop a video or mp3 player or animation when changing a page ? I've tested multiple possibility without success ?

blachawk commented 11 years ago

That depends on what API you are using to play your video's or mp3's. It depends on if your API allows you to bind additional click event handlers to certain functions like play, stop, pause, etc...

builtbywill commented 10 years ago

If you are using html5 video or audio I would suggest a similar solution as #34. Basically you can tie into the start and change events to target your video and audio to start and stop.