如何在iBooks中编写Javascript以在页面之间连续播放音频。已经尝试过ibooks.js [英] How can I code Javascript to play audio continuously from page to page in iBooks. Already tried ibooks.js

查看:78
本文介绍了如何在iBooks中编写Javascript以在页面之间连续播放音频。已经尝试过ibooks.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在尝试在iBooks中编写一个按钮,用户可以触摸按钮,以便在整本书中继续播放音乐,即使翻页也是如此。



到目前为止我使用了以下内容:



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">





这使用iBooks.js



问题是这只适用于单个页面。一旦用户转到下一页,音频就会停止。



有没有办法让音频在翻页时继续播放。某种全局功能,可以从任何页面控制。



我已经关闭了iBooks中的本地背景选项,因为Title:Read Aloud存在,这会误导用户认为这本书是一本朗读书。



这个本书目前只是图像和背景音乐。



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.

推荐答案

这篇关于如何在iBooks中编写Javascript以在页面之间连续播放音频。已经尝试过ibooks.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆