Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我会尽力正确地表达这个问题。我有一个页面正在加载旁白音频文件(播放压缩 .mp3 的简单 Flash 播放器),然后我将其与屏幕上出现的点同步。我正在使用 jQuery 中的 .delay 来实现这一点。
我的问题是 flash 对象的加载时间不是标准的,并且会抛出定时标签的显示。
有没有办法让延迟仅在 Flash 对象开始播放后才开始?
看看 flowPlayer
http://flowplayer.org/demos/plugins/flash/load-swf.html
使用这个 js 你可以控制 flash 何时播放或加载
您可以尝试使用 jQuery 加载 flash 元素,然后使用回调函数。Flash 视频需要自动播放。只是一个想法,没有尝试过。
$("#flash").load("flash.html", function(){ // Your delayed stuff });