网络音频API:寻找,播放/缓冲进程 [英] Web Audio API: seek, play-/buffer-progress

查看:184
本文介绍了网络音频API:寻找,播放/缓冲进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在Chrome中使用音频元素播放音频时,会产生烦人的点击和裂缝。至少在我的64位Linux安装下,即使格式化并安装了新的Fedora版本。 (Firefox和Opera都可以,甚至是VirtualBox Windows 7中的IE9。)



但是使用Web Audio API而不是音频元素的演示具有完美的声音。所以我想知道是否可以像音频元素一样使用Web Audio API?但是有些事情你似乎无法用这个API做。或者我错过了什么?我找不到的东西在哪里:


  • 在文件完全加载之前就开始播放文件了

  • 获取缓冲区进度更新(取决于前一点)
  • 正在播放进度更新

  • 寻找

  • 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:

    • starting to play a file before it is completely loaded
    • getting buffer progress updates (depends on the previous point)
    • getting play progress updates
    • seeking

    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屋!

    查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆