【问题标题】:play specific start and end duration within audio using html-5使用 html-5 在音频中播放特定的开始和结束持续时间
【发布时间】:2017-06-05 02:34:39
【问题描述】:

我想创建一个网页,就像这个问题中解释的那样: How to play specific start and end duration in HTML5 audio? 我的问题是如何创建这样的表和必要的 ajax 来播放具有特定开始和结束持续时间的音频。谢谢。

【问题讨论】:

  • 请发布具体问题而不是作业。尝试并在遇到特定事情时回来。

标签: javascript html audio


【解决方案1】:

您可以使用Media Fragments URI播放特定时间范围的媒体资源

<label>Play first 30 seconds of audio</label><br><audio controls src="https://upload.wikimedia.org/wikipedia/commons/b/be/Hidden_Tribe_-_Didgeridoo_1_Live.ogg#t=0,30"></audio><br><br>
<label>Play from 30 to 50 seconds of audio</label><br><audio controls src="https://upload.wikimedia.org/wikipedia/commons/b/be/Hidden_Tribe_-_Didgeridoo_1_Live.ogg#t=30,50"></audio>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-09
    • 1970-01-01
    • 2023-02-22
    • 1970-01-01
    • 2019-08-19
    相关资源
    最近更新 更多