pupunzi / jquery.mb.vimeo_player

A jQuery plug-in to play any Vimeo video as background of your page
https://pupunzi.com/mb.components/mb.vimeo_player/demo/index.html
59 stars 30 forks source link

Events are not firing #2

Closed weilinzung closed 7 years ago

weilinzung commented 7 years ago

Can you check the events are working or not on the Vimeo scripts? everthing is working on the Youtube(YTStart) one. thanks!

var vimeo_videoPlayer = jQuery("#vimeo-vd-bg").vimeoPlayer();

vimeo_videoPlayer.on("VPStart", function(e){ $('.preloader').addClass("hidden"); console.log("video-bg-start"); });

pupunzi commented 7 years ago

Should be fixed with the last update

weilinzung commented 7 years ago

I don't think so, still not firing. and i don't see any commits that fix the Events!VPStart thanks!

pupunzi commented 7 years ago

Sorry, my fault. Try now... it should be committed: Release v1.0.4 stable

weilinzung commented 7 years ago

nice. It works now. VPStart However, when the video is "start" to play that still has a fade or few seconds delay, it is not start immediately.

vimeo_vimeo_player.on("VPStart", function(){ console.log("video-bg-start"); }

Also, the mobileFallbackImage is not working like the Youtube one on mobile devices.

On the Vimeo one, looks like it generate a screen from the video itself, so I don't think the fallback image script is working.

I think could be the z-index problem, but if add the number to z-index that may case issue. Because it is a fixed position, that may overlapping on all other divs.

Please also fix.

Screenshot: https://s1.postimg.org/nyvuaq9j3/IMG_0260.png, it has a white border around it.

weilinzung commented 7 years ago

sorry, any updates on this?

pupunzi commented 7 years ago

This has been fixed on the latest update: https://github.com/pupunzi/jquery.mb.vimeo_player/releases/tag/1.0.5

weilinzung commented 7 years ago

Very nice, but for the video delay to play thing, I guess I would just have to increase the seconds for hiding the pre-loader.

vimeo_vimeo_player.on("VPStart", function(){ $('.preloader').addClass("hidden"); console.log("video-bg-start"); });

to

vimeo_vimeo_player.on("VPStart", function(){ $('.preloader').addClass("hidden").delay(1800); <--idea for delay to hide this to fix the delay seconds on the Vimeo Script, not a functional code--> console.log("video-bg-start"); });

pupunzi commented 7 years ago

Now the VPStart event is synchronized with the real display of the video.

weilinzung commented 7 years ago

try to run bower uninstall jquery.mb.vimeo_player still on the last version without the VPStart fix. The github one is fine.

thanks!

pupunzi commented 7 years ago

now you can get the 1.0.6 v with the VPStart timing fix

2017-03-22 12:49 GMT+01:00 Weilin notifications@github.com:

try to run bower uninstall jquery.mb.vimeo_player still on the last version without the VPStart fix. The github one is fine.

thanks!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/pupunzi/jquery.mb.vimeo_player/issues/2#issuecomment-288375468, or mute the thread https://github.com/notifications/unsubscribe-auth/AADdU9OdvPQ_S-S8ZUSfHOBd94CoEfjGks5roQrkgaJpZM4Mhx-K .

--

matteo bicocchi pupunzi.com pupunzi.open-lab.com http://pupunzi.open-lab.com/ art director open lab s.r.l.

via venezia 18b 50121 firenze italia t. +39 055 5522779

open-lab.com twproject.com