Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-27-2012, 01:53 AM   #1
josephmwheeler
Junior Member
josephmwheeler began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2012
Device: none
Audio Controls in ePub3

Is there a way to hide the audio controls in ePub3? That is to say, I would like to click on the word and hear the audio rather than the control button. I have looked high and low and tested more times than I want to remember.

Thanks in advance.

Joe
josephmwheeler is offline   Reply With Quote
Old 06-27-2012, 07:45 AM   #2
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
You might ask in the Apple section, if you haven't already.
mrmikel is offline   Reply With Quote
Old 10-02-2012, 09:38 AM   #3
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
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.
AlPe is offline   Reply With Quote
Old 10-03-2012, 02:34 PM   #4
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
Quote:
Originally Posted by josephmwheeler View Post
I would like to click on the word and hear the audio rather than the control button.
seems like you're able to override the default controls using the epub:trigger element in epub3, and bind controls to whatever html you'd want, although i haven't had a chance to test it out yet. the sample html provided on idpf looks like this:

Spoiler:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:epub="http://www.idpf.org/2007/ops"
xmlns:ev="http://www.w3.org/2001/xml-events">
<head>
<epub:trigger ev:observer="pause" ev:event="click" action="pause" ref="test"/>
<epub:trigger ev:observer="resume" ev:event="click" action="resume" ref="test"/>
<epub:trigger ev:observer="mute" ev:event="click" action="mute" ref="test"/>
<epub:trigger ev:observer="mute" ev:event="click" action="show" ref="muted"/>
<epub:trigger ev:observer="unmute" ev:event="click" action="unmute" ref="test"/>
<epub:trigger ev:observer="unmute" ev:event="click" action="hide" ref="muted"/>
</head>
<body>
<video id="test" src="birds.mp4" width="320" height="240"/>
<p>
<span class="button" id="resume">Play/Resume</span>
<span class="button" id="pause">Pause</span>
<span class="button" id="mute">Mute</span>
<span class="button" id="unmute">Unmute</span>
<span id="muted">MUTED</span>
</p>
</body>
</html>


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
mzmm is offline   Reply With Quote
Old 10-03-2012, 03:45 PM   #5
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
Quote:
Originally Posted by AlPe View Post
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.
i'm kind of unclear on what it is you're trying to do, but it sounds like you might be attempting to use the <audio> element to create a media-overlay(?)

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.
mzmm is offline   Reply With Quote
Old 10-03-2012, 04:57 PM   #6
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
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!
AlPe is offline   Reply With Quote
Old 10-04-2012, 02:52 PM   #7
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
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.
AlPe is offline   Reply With Quote
Old 10-25-2012, 04:17 AM   #8
ms82
Junior Member
ms82 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2012
Device: none
Quote:
Originally Posted by AlPe View Post
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.
Has anyone tried this epub:trigger? I downloaded this cc-shared-culture-20120130.epub and epub:trigger seems to be not supported (I used calibre, FBReader, and epubReader in Firefox). I tried also to write some example using instructions from http://idpf.org/epub/30/spec/epub30-...l-epub-trigger but also without a success (no actions are triggered when I click on the Play/Pause/... 'buttons').

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)?
ms82 is offline   Reply With Quote
Old 10-25-2012, 04:30 AM   #9
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Quote:
Originally Posted by AlPe View Post
Also, SMIL does not seem suitable for what I want.
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.
AlPe is offline   Reply With Quote
Old 10-25-2012, 04:38 AM   #10
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Quote:
Originally Posted by ms82 View Post
Has anyone tried this epub:trigger? I downloaded this cc-shared-culture-20120130.epub and epub:trigger seems to be not supported (I used calibre, FBReader, and epubReader in Firefox). I tried also to write some example using instructions from http://idpf.org/epub/30/spec/epub30-...l-epub-trigger but also without a success (no actions are triggered when I click on the Play/Pause/... 'buttons').
I do not remember exactly, but I made some code (modifying cc-shared-culture) working on iBooks 2. I will check my notes when I get back home. All other readers failed.

Quote:
Originally Posted by ms82 View Post
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)?
AFAIK, not even Readium supports it. Check the support spreadsheet here: http://www.bisg.org/what-we-do-12-15...pport-grid.php
AlPe is offline   Reply With Quote
Old 10-25-2012, 03:27 PM   #11
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
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.
AlPe is offline   Reply With Quote
Old 10-26-2012, 02:08 PM   #12
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
Quote:
Originally Posted by AlPe View Post
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.
hey great to hear - thanks for uploading.

Quote:
Originally Posted by AlPe View Post
1) iBooks does not support [smil] (not even iBooks 3) ...
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?
mzmm is offline   Reply With Quote
Old 10-26-2012, 02:12 PM   #13
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Quote:
Originally Posted by mzmm View Post
hey great to hear - thanks for uploading.
You're welcome.


Quote:
Originally Posted by mzmm View Post
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?
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.
AlPe is offline   Reply With Quote
Old 10-28-2012, 01:43 PM   #14
codevise
Junior Member
codevise began at the beginning.
 
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.
codevise is offline   Reply With Quote
Old 10-28-2012, 03:20 PM   #15
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
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 ()*

Last edited by AlPe; 10-28-2012 at 03:40 PM.
AlPe is offline   Reply With Quote
Reply

Tags
audio, epub3

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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 10 07-29-2014 11:16 AM
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


All times are GMT -4. The time now is 01:58 PM.


MobileRead.com is a privately owned, operated and funded community.