pupunzi / jquery.mb.YTPlayer

use a custom yutube player for a video as background on jQuery framework
https://pupunzi.com/mb.components/mb.YTPlayer/demo/demo.html
1.3k stars 431 forks source link

Redirect site when video is finished #371

Closed edulaerti closed 6 years ago

edulaerti commented 6 years ago

Hello,

How can i manage to redirect the site after the video is finished?

i have a six seconds video and i want to tell the script that when the video is finished redirect the site to another page as im using it as a splash screen for the mobile app.

Regards

pupunzi commented 6 years ago

Hi, There's the "YTPEnd" event fired once the video ends that you can use for the redirect: https://github.com/pupunzi/jquery.mb.YTPlayer/wiki#events