javascript - html5 + javascript 播放波浪声音

标签 javascript html audio wav html5-audio

我有一个 5 秒长的波形文件。 如何实现可以从时间线中的一个点播放到另一个点的播放功能。 例如,播放3.00s - 4.00s(仅播放原始波形的一段)

最佳答案

未经测试,但您可以检查:MDN: Using HTML5 audio and video # Specifying play back range

A few examples:

http://foo.com/video.ogg#t=10,20

Specifies that the video should play the range 10 seconds through 20 seconds.

http://foo.com/video.ogg#t=,10.5

Specifies that the video should play from the beginning through 10.5 seconds.

http://foo.com/video.ogg#t=,02:00:00

Specifies that the video should play from the beginning through two hours.

http://foo.com/video.ogg#t=60,

Specifies that the video should start playing at 60 seconds and play through the end of the video.

关于javascript - html5 + javascript 播放波浪声音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12723646/

相关文章:

javascript - Angular Material 布局错误?卡片重叠

javascript - 无法使用 jquery 删除 CSS `position` 属性

audio - 使用 NAudio 发送播放音频

javascript - 通过另一个列表框的值过滤javascript中列表框的值

javascript - xul 中的对接面板

javascript - 如何从 extjs 4 存储中获取数据

html - 如何在HTML5中不使用对等连接的情况下实现多方音频 session 系统?

javascript - 现在在 Javascript 中补偿多个框架/窗口是否有意义?

language-agnostic - 编程音频入门

c - 从头开始合成 WAV 文件 - C