DaveyCoder 0 Newbie Poster

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.