网络音频API:寻找,播放/缓冲进程 [英] Web Audio API: seek, play-/buffer-progress
问题描述
当您在Chrome中使用音频元素播放音频时,会产生烦人的点击和裂缝。至少在我的64位Linux安装下,即使格式化并安装了新的Fedora版本。 (Firefox和Opera都可以,甚至是VirtualBox Windows 7中的IE9。)
但是使用Web Audio API而不是音频元素的演示具有完美的声音。所以我想知道是否可以像音频元素一样使用Web Audio API?但是有些事情你似乎无法用这个API做。或者我错过了什么?我找不到的东西在哪里:
- 在文件完全加载之前就开始播放文件了
- 获取缓冲区进度更新(取决于前一点)
- 正在播放进度更新
- 寻找
- starting to play a file before it is completely loaded
- getting buffer progress updates (depends on the previous point)
- getting play progress updates
- seeking
ul>
有没有一种方法可以用Web Audio API做到这一点?
这是我使用它的地方:< a href =http://tinyurl.com/magnatune-player =nofollow> http://tinyurl.com/magnatune-player
与此同时,Chrome修复了音频播放问题。所以我不再需要任何解决方法。
When you play audio using the audio element in Chrome you get annoying clicks and cracks. At least under my 64bit Linux installation, even after I formatted and installed a new Fedora version. (Firefox and Opera are fine, even IE9 in a VirtualBox Windows 7.)
But demos using the Web Audio API instead of the audio element have perfect sound. So I was wondering if I could use the Web Audio API like the audio element? But there are some things you seem not to be able to do with this API. Or am I missing something? The things I couldn't find where:
Is there a way to do this with the Web Audio API?
This is where I would use it: http://tinyurl.com/magnatune-player
In the meantime Chrome fixed the audio playback issues. So I don't need any workarounds anymore.
这篇关于网络音频API:寻找,播放/缓冲进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!