当flowplayer完成下载剪辑时,会触发什么事件

What is the event that fires when flowplayer finished downloading the clip?

本文关键字:事件 什么 flowplayer 下载      更新时间:2023-09-26

我在确定一个剪辑何时在Flowplayer中完全下载时遇到问题。在我正在工作的项目中,重要的是在播放过程中没有缓冲暂停,所以我必须确保剪辑已完全加载/下载。

onLoad事件在加载播放器(而不是剪辑)时触发,因此效果不佳。

知道是否有这样的事件,或者我的应用程序如何知道剪辑何时完全下载?

感谢

当剪辑缓冲区完全填满时,只有onBufferFull

您可能想尝试在主视频之后向播放列表中添加第二个剪辑,然后向该剪辑添加onNetStreamEventonMetaData,这样您就可以知道第二个片段何时接收到网络数据,从而开始加载。

http://flowplayer.org/documentation/events/clip.html

为了确保没有缓冲暂停,您还可以考虑使用更高的"缓冲"值,比如说整个剪辑长度?!有一个名为bufferLength的属性:

http://flowplayer.org/documentation/configuration/clips.html