Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:

JavaScript
<div id="audioButton" class="ibooks-media-audio" data-ibooks-audio-reset-on-play="true" data-ibooks-audio-src="audio/background_audio.m4a">


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.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900