View Single Post
Old 06-03-2014, 07:09 AM   #24
Jesver
Member
Jesver began at the beginning.
 
Jesver's Avatar
 
Posts: 10
Karma: 10
Join Date: Jul 2012
Location: Chennai
Device: ipad, Kindle, Nook, kobo
Quote:
Originally Posted by josephmwheeler View Post
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

Hi Joe,

have you try Js?
If not, pls check the below coding:

<script type="text/javascript">

function audplay() {
var video = document.getElementById("audio1");
var button = document.getElementById("play");
if (video.paused) {
video.play();
button.textContent = "audio playing";
} else {
video.pause();
button.textContent = "pause";
}
}

function restart() {
var video = document.getElementById("audio1");
video.currentTime = 0;
}

function skip(value) {
var video = document.getElementById("audio1");
video.currentTime += value;
}
</script>

</style>


</head>
<body>
<audio id="audio1" >
<source src="mpthreetest.mp3" type="audio/mp3" />

HTML5 Video is required for this example.
</audio>



<div id="buttonbar">

<a id="play" onclick="audplay()">start play</a>

</div>
Jesver is offline   Reply With Quote