Quote:
Originally Posted by josephmwheeler
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>