问题描述
我是新来的.
我想知道视频播放完后如何显示HTML代码.我正在使用FlowPlayer( http://www.flowplayer.org ).
I would like to know how can I display HTML code after a video is finished playing. I am using FlowPlayer (http://www.flowplayer.org) .
我已经尝试使用JW Flash Player( http://www .longtailvideo.com/players/jw-flv-player/),但无法确定任何内容.
I have tried to achieve this using JW Flash Player (http://www.longtailvideo.com/players/jw-flv-player/), but was unable figure out anything.
另外,让我知道是否可行.如果是这样,请与我和StackOverflow上的所有人分享.
Also, let me know if it's possible or not. And if it is, please share with me and everybody on StackOverflow.
P.S.我正在使用PHP.
P.S. I am using PHP.
推荐答案
根据FlowPlayer 文档视频结束时会触发onFinish事件.虽然我刚刚更改了一些示例代码,但类似的东西应该可以工作:
According to the FlowPlayer documentation an onFinish event is fired when the video finishes. While I've just changed some of the example code something like this should work:
flowplayer("player", "yourmoviefile.swf", {
// a clip object
clip: {
// a clip event is defined inside clip object
onFinish: function() {
$('#finish').html('your string to show here');
alert("clip started");
}
}
});
jQuery行将您指定的html字符串插入ID为finish的div中.
The line of jQuery will insert the html string you specify into a div with an ID of finish.
这篇关于视频播放结束后如何显示HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!