HTML5媒体事件的jQuery事件处理

Ana*_*and 5 jquery html5

我想听听HTML5 <audio>元素触发的一些事件.<audio>元素的一些事件属性是:onplaying,onprogress,onseeked,onseeking等,

我尝试使用live()下面的常规函数在jquery中监听这些事件,但它没有用.

        $('audio#voice').live('progress', function(){
            $('a#play').replaceWith("Playing...")
        });
Run Code Online (Sandbox Code Playgroud)

我也尝试过

        $('audio#voice').live('onprogress', function(){
            $('a#play').replaceWith("Playing...")
        });
Run Code Online (Sandbox Code Playgroud)

有没有其他方法可以在jQuery中收听这些HTML5媒体事件?

Ana*_*and 0

live() 不起作用。 bind()工作了。

$('audio#voice').bind('progress', function(){
  $('a#play').replaceWith("Playing...")
});
Run Code Online (Sandbox Code Playgroud)