如上所述,我不知道如何做JQuery,这可能吗?
Jquery的:
<script>
$('#player').on('timeupdate', function() {
$('#seekbar').attr("value", this.currentTime / this.duration);
});?
</script>
答案 0 :(得分:2)
document.getElementById('player').addEventListener('timeupdate', function() {
document.getElementById('seekbar').value = this.currentTime / this.duration;
}, false);