是否有HTML5音频的onComplete时间? [英] Is there an oncomplete event for HTML5 audio?

查看:229
本文介绍了是否有HTML5音频的onComplete时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个的onComplete 事件HTML5音频?我找不到这个东西。我想它完成后播放声音。

好了,特别是我想通过声音一前一后的数组玩。

感谢。


解决方案

有是结束事件。 。

<一个href=\"http://dev.w3.org/html5/spec/Overview.html#event-media-ended\">http://dev.w3.org/html5/spec/Overview.html#event-media-ended

下面是一些例子:<一href=\"http://forestmist.org/2010/04/html5-audio-loops/\">http://forestmist.org/2010/04/html5-audio-loops/

Is there an oncomplete event for HTML5 audio? I could not find anything on this. I am trying to play a sound after it completes.

Well, specifically I am trying to play through an array of sounds one after the other.

Thanks.

解决方案

There is the ended event . . .

http://dev.w3.org/html5/spec/Overview.html#event-media-ended

Here are some examples: http://forestmist.org/2010/04/html5-audio-loops/

这篇关于是否有HTML5音频的onComplete时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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