简体   繁体   English

JWPlayer onComplete显示一个弹出窗口

[英]JWPlayer onComplete show a pop-up

I am using jQuery and JWPlayer on a page where the video is being played. 我在正在播放视频的页面上使用jQuery和JWPlayer。 When the video ends I would like to show an overlay pop-up with CTA. 视频结束后,我想显示带有CTA的重叠式弹出窗口。

In documentation I have found that onComplete() call could be used for that, but I can't find any info on how to fire up a pop-up... 在文档中,我发现可以使用onComplete()调用,但是我找不到有关如何触发弹出窗口的任何信息...

Is it possible at all? 有可能吗? If yes, how do I show an overlay sort of pop-up once the video finished playing? 如果是,那么在视频播放完后如何显示弹出窗口叠加层?

Here is example to CTA onComplete: 这是CTA onComplete的示例:

http://www.jwplayer.com/blog/call-to-action-with-jw-player/ http://www.jwplayer.com/blog/call-to-action-with-jw-player/

You can view the code in this page: http://demo.jwplayer.com/cta-overlay/ 您可以在此页面中查看代码: http : //demo.jwplayer.com/cta-overlay/

Another option is to use other jquery lightbox plugin and use onComplete() to fire pop-up 另一个选择是使用其他jquery lightbox插件并使用onComplete()触发弹出窗口

    jwplayer().onComplete(function(){/*your jquery function*/})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM