![](/img/trans.png)
[英]How to play a .mp3 or .m4a audio on a webpage and show the embedded album art at the same time? (using Javascript, HTML5, or Flash)
[英]How to merge multiple m4a or audio files and attach it to audio tag, and show the time on controller correctly
<audio id="audio" controls>
<source src="Countdown.m4a" type="audio/x-m4a">
Your browser does not support the audio element.
</audio>
這是 html 元素,我想重復“Countdown.m4a”三次,由於“Countdown.m4a”長 5 分鍾,controller slider 應該顯示 15 分鍾而不是 5 分鍾。
如何做到這一點?
嘗試使用,但無法修改控件 slider 的長度。 試圖找到我們如何使用 js 合並文件,但我在網上找不到任何東西。
因為所有的 a/v 媒體本質上都比看起來更復雜和復雜(意味着連接媒體比你想象的更成問題,原因有很多),你最好的選擇是通過在服務器端完成所有工作來連接聲音,您可以在其中使用命令行應用程序,例如 ffmpeg。
也就是說,請查看: https://mitya.uk/articles/concatenating-audio-pure-javascript ,它具有令人耳目一新的客戶端方法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.