View Single Post
Old 04-05-2015, 04:48 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,739
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by smarsten View Post
Does anyone know that when you embed an audio file with Sigil into an epub that Sigil creates an icon that must be clicked to play the audio file, or does the audio file automatically get played when the page where it is embedded is displayed/opened?
As other posters have already pointed out, sound playback is an ePub3 feature that very few readers and apps support, and Sigil is an ePub2 editor with limited embedded media support.

As for the playback controls, AFAIK, they don't need to be explicitly defined.

Sigil playback controls support appears to be OS-dependent:

Windows: The official Windows Sigil 0.8.5 release automatically displays disabled playback controls.
Linux: DiapDealer's unofficial Sigil Linux 0.8.5 release automatically displays working playback controls.
OSX: Sigil audio/video playback works, according to KevinH.

(The test file is a valid ePub3 file that works with iBooks, Gitden Reader, ADE 4 and Readium.)

Here's the HTML code:

Spoiler:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title/>
</head>

<body>
  <h3>ePub audio test</h3>

  <h4 id="sigil_toc_id_1">Left Speaker Test:</h4>

  <audio controls="controls" src="../Audio/left.mp3">Your app/device does not support the audio element.</audio>

  <h4 id="sigil_toc_id_2">Right Speaker Test:</h4>

  <audio controls="controls" src="../Audio/right.mp3">Your app/device does not support the audio element.</audio>

  <p>Audio files courtesy of <a href="http://www.richardfarrar.com/are-your-speakers-wired-correctly/">RichardFarrar.com</a>.</p>
</body>
</html>
Attached Thumbnails
Click image for larger version

Name:	sigil_linux.png
Views:	1017
Size:	17.3 KB
ID:	136823   Click image for larger version

Name:	sigl_windows.png
Views:	1008
Size:	7.6 KB
ID:	136824  
Attached Files
File Type: epub ePub_audio_test_epub3.epub (135.6 KB, 1165 views)

Last edited by Doitsu; 07-12-2015 at 02:17 AM. Reason: Updated for ePubCheck 4 compatibility; added ADE 4 information
Doitsu is offline   Reply With Quote