0
我新的HTML5,我想要做的就是讓聲音持續時間,當我點擊暫停按鈕如何獲得當音頻暫停HTML5音頻持續時間
這裏什麼是我的代碼
<audio controls="" id="audio">
<source src="assets/record_file/abc.mp3" type="audio/ogg">
<source src="assets/record_file/abc.mp3" type="audio/mpeg">
Your browser does not support the audio element. Please try other latest browser
</audio>
任何想法如何做到這一點?
感謝
你能解釋一下你的代碼嗎? – Stephan
這些變量分別保存暫停的音頻的當前時間和音頻的總長度。 – devWaleed
用暫停按鈕掛起它... – devWaleed