Q: How can I code Javascript to play audio continuously from page to page in iBooks. Already tried ibooks.js !
Hi,
I am trying to code a button in iBooks, where the user can touch the button, in order for music to play continuesly throught the book, even when a page is turned.
I have used the following so far:
<div id="audioButton" class="ibooks-media-audio" data-ibooks-audio-reset-on-play="true"
data-ibooks-audio-src="audio/background_audio.m4a"></div>
This uses iBooks.js
The problem is that this only works on a single page. As soon as the user turns to the next page, the audio stops.
Is there a way to make the audio keep playing when the page is turned. Some kind of global function, which can be controlled from any page.
I have switched off the background option, native in iBooks, as the Title: Read Aloud is present, which would missleed the user into thinking that
the book is a read aloud book.
This book is currently just images and background music.
Best Wishes
D
iBook, iOS 7.1.1, I can also use Jquery or regular JS
Posted on Jun 10, 2014 3:20 PM