Simbul / baker

The HTML5 ebook framework to publish interactive books & magazines on iPad & iPhone using simply open web standards
http://bakerframework.com
1.53k stars 378 forks source link

Is there a way to have background music playing through multiple pages? #507

Open astroboyvn88 opened 11 years ago

astroboyvn88 commented 11 years ago

I am developing an interactive book and wondering how we can implement different background music for different pages?

For example I want from page 1 to page 10, the book plays music1.mp3 and from page 11 to 20, it plays music2.mp3.

Right now I can only embed music within the page itself which means when you swipe to other pages, the music from the previous page stops playing and the app starts playing the music from the current page. Well, this is not practically an ideal way of having background music, isn't it?

Hope you guys come up with a solution.

Cheers,

folletto commented 11 years ago

It's not possible right now, but we'll add it as a feature request. :)

Thanks. :)

stemmo commented 11 years ago

I wanted to do this too a while ago, and found it was possible to load a single mp3 using Javascript in index.html, which then plays throughout the entire book. But managing the audio thereafter is impossible. There was certainly no way of having different background audio for different pages/chapters, which is what I wanted.

astroboyvn88 commented 11 years ago

@folletto : Great!!! I'm looking forward to that functionality. It would be nice if you can provide some sort of global sound controller that controls the volume of the background music of the entire book and the music that plays on certain pages.

I know it's quite complicated but if we can manage to make it happen, I think this would be very nice! :)

Cheers,