简体   繁体   中英

JWPlayer onComplete show a pop-up

I am using jQuery and JWPlayer on a page where the video is being played. When the video ends I would like to show an overlay pop-up with 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...

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:

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/

Another option is to use other jquery lightbox plugin and use onComplete() to fire pop-up

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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