Playing HTML5 audio in Ebooks and Publications

Applies to IE Browser publications.

By using HTML5, you can add a music player to your webpage without requiring a third-party plug-in or add-on.

HTML code:

<audio src="media/swan.mp3" controls autoplay loop> 
  HTML5 audio not supported: Internet Explorer 9 is not installed</audio>
Example not available in this online documentation: please run the offline help from HTML Executable to have a working example.

Warning: for users of Windows 7, Vista, XP, support for HTML5 in HTML Executable 4 requires Internet Explorer 9 to be installed on the end user’s computer (not necessarily set as the default browser). On Windows 8, 8.1, Windows 10 and higher, this is natively supported (thanks to Internet Explorer 10 and higher that ships with Windows).

About large audio files and how to encrypt them to avoid copying

If your audio files are large, we recommend you to keep them outside the publication .EXE file (Windows handles EXE filesizes up to 4 GB only): they are considered as external files.

Moreover, HTML Executable allows you to encrypt your audio files so that these files can only be played by the publication or ebook. This is a security feature that will help avoid unwanted copying of your audio resources.

Refer to the Encrypt External Files topic.


Copyright G.D.G. Software 2019. All rights reserved