|
|
#1 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2012
Device: none
|
Audio Controls in ePub3
Thanks in advance. Joe |
|
|
|
|
|
#2 |
|
Book Twiddler
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,023
Karma: 1118807
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
You might ask in the Apple section, if you haven't already.
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 501
Karma: 1169999
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
I am wondering about the same issue, as I am working on a pet project involving an audio eBook.
Specifically, I would like to customize the audio player control bar (not necessarily on iBooks --- for example Readium or Calibre ebook-viewer now support the audio element as per EPUB 3 specs). The EPUB 3 specs do not seem to provide much meat, nor the "official" samples do. The support is --- surprise, surprise --- spotty. When I change chapter in ebook-viewer, the audio track that has started playing stops. On iBooks, on the other hand, this does not happen. So, if I need to listen to a different track (from, say, Chapter 2), I need to go back and stop the track associated with the previous chapter (say, Chapter 1). Does anyone have good pointers to solve/document these issues? Thanks in advance. |
|
|
|
|
|
#4 | |
|
Zealot
![]() ![]() Posts: 101
Karma: 126
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
Spoiler:
and you can read more here about :trigger : http://idpf.org/epub/30/spec/epub30-...l-epub-trigger Last edited by mzmm; 10-03-2012 at 02:38 PM. Reason: weird formatting |
|
|
|
|
|
|
#5 | |
|
Zealot
![]() ![]() Posts: 101
Karma: 126
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
as i understand the specs, an audio clip should be included using the html5 audio element, but an ambient soundtrack or narration should be done with a media overlay. i think that playback controls for media-overlays are provided by the e-readers, though. |
|
|
|
|
|
|
#6 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 501
Karma: 1169999
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
Hi,
thank you for the interesting pointers. They all look promising. Just to clarify my request: I do not want to create a media-overlay, because I am working with several different audio clips whose reproduction should be left on the user's will. I was just asking if it was possible to "tweak" the <audio> tag in order to have it displayed in the same way on every reading software (a way to achieve this might exploit the epub:trigger, I will give it a try tomorrow) and whether it is possible to automatically stop an ongoing audio clip if the user exits the chapter it belongs to. Thank you again for your suggestions! |
|
|
|
|
|
#7 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 501
Karma: 1169999
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
For anyone interested: download cc-shared-culture-20120130.epub from http://code.google.com/p/epub-samples/downloads/list
The epub:trigger is a good way to define the play/pause/mute/unmute controls. However, still no idea about "confining" an audio element to play only when the XHTML page is actually rendered, and to stop it when the XHTML page is changed. (For example, from my test, iBooks seems to stop the audio when you go back, but not when you go forward) Also, SMIL does not seem suitable for what I want. |
|
|
|
|
|
#8 | |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Oct 2012
Device: none
|
Quote:
If you managed to have this working could you please say on which reader you launch it? And one more thing, namely is there a need to have some JavaScipt for this (as it was in case of ops:trigger)? |
|
|
|
|
|
|
#9 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 501
Karma: 1169999
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
Correction: SMIL is the right way to go, as, per spec, it provides a way of "limiting" the reproduction of an audio clip to a certain portion of text.
Some caveats: 1) iBooks does not support it (not even iBooks 3) and ADE neither 2) AZARDI offers some minimal support to SMIL 3) Readium offers support for SMIL, but --- to date --- the "stable" version (0.5.3 9/29/2012) has problems with internal links and SMIL. They have already been solved in the sources, so you might want to get the source code via git, and load it into Chrome as "unpacked extension". So, for the moment, for my needs (iBooks, unfortunately), I will simply embed the audio file, add an <audio> tag, but I will not add SMIL yet. I hope SMIL will gain traction soon.
__________________
Personal Website (EN): http://www.albertopettarin.it/ (My) Company Website (EN/IT): http://www.smuuks.it/ Coordinator Member of eBookClub Italia: http://ebci.it/ |
|
|
|
|
|
#10 | ||
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 501
Karma: 1169999
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
Quote:
Quote:
__________________
Personal Website (EN): http://www.albertopettarin.it/ (My) Company Website (EN/IT): http://www.smuuks.it/ Coordinator Member of eBookClub Italia: http://ebci.it/ |
||
|
|
|
|
|
#11 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 501
Karma: 1169999
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
I confirm that epub:trigger works in iBooks 3 (I think it was working in iBooks 2 as well), at least for pause/play/mute/unmute, without JS, just load the xml-events namespace. See cc-shared-culture demo.
__________________
Personal Website (EN): http://www.albertopettarin.it/ (My) Company Website (EN/IT): http://www.smuuks.it/ Coordinator Member of eBookClub Italia: http://ebci.it/ |
|
|
|
|
|
#12 | |
|
Zealot
![]() ![]() Posts: 101
Karma: 126
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
smil actually is supported in iBooks. this is how they're creating their Read Aloud function, although i don't think i've ever seen it implemented in a flowing book. perhaps they only have support for it for their fixed-layouts? |
|
|
|
|
|
|
#13 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 501
Karma: 1169999
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
You're welcome.
Exactly. Media Overlays not supported in reflowable rendition. Hence, it is not (fully) supported. Put in other words, SMIL works only in fixed layout. Which is a pity, in my opinion.
__________________
Personal Website (EN): http://www.albertopettarin.it/ (My) Company Website (EN/IT): http://www.smuuks.it/ Coordinator Member of eBookClub Italia: http://ebci.it/ |
|
|
|
|
|
#14 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2012
Device: ipad, kindle
|
We at Codevise implemented a polyfill for media overlays with reflowable content in iBooks>1.3. Basically, it parses the smil and provides menus to control the audio.
As this is nice and works for more than a year in production (full books; splitted on a per sentence basis), we'd love to see apple providing the "read-aloud" gui in non-fixed layout epubs too. |
|
|
|
|
|
#15 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 501
Karma: 1169999
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
Hi, thanks for the lead.
I was thinking of doing that as well (NOT from scratch, maybe from the Readium sources, of course)*, maybe at the bare minimum required for my pet project. I assume you cannot make the JS public, as it is a "proprietary" tool, right? (The funny thing is that I have all the 100 SMIL files, and they work well in Readium and AZARDI, but not in iBooks, since my ebook is reflowable... shame on Apple) EDIT: added ()*
__________________
Personal Website (EN): http://www.albertopettarin.it/ (My) Company Website (EN/IT): http://www.smuuks.it/ Coordinator Member of eBookClub Italia: http://ebci.it/ Last edited by AlPe; 10-28-2012 at 03:40 PM. |
|
|
|
![]() |
| Tags |
| audio, epub3 |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is there any android epub reader supporting epub3 with audio/video/javascript? | happycoding | Android Developer's Corner | 6 | 11-19-2012 06:46 PM |
| PRS-T1 music player controls | m3l7d0wN | Sony Reader | 3 | 05-25-2012 03:14 PM |
| Lost My Very Long Post With Questions About PB 301 Controls vs PB 360 Controls | Vienna01 | PocketBook | 6 | 06-04-2010 01:51 PM |
| Blackstone Audio to release audio books as DRM-free MP3s | Donnageddon | News | 4 | 07-07-2008 12:16 PM |