PrettyPhoto not working[video from youtube, vimeo]

I don’t know why but prettyphoto does not work for me. It don’t play videos from youtube or vimeo.
If the video is from youtube then it is open but never starts, but if the video is from vimeo it reload the page every second and nothing shows up.

Anybody has the same problem or is only me?

On demo site is the same problem. http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/

Any help will be appreciated.

– Andrei

YouTube works for me, Vimeo does not, just like ou described.

OriginalEXE said

YouTube works for me, Vimeo does not, just like ou described.

Hmm, interesting, I just tested other lightbox plugins(Colorbox, Fancybox, Evolution…) and none can play youtube videos. Vimeo works ok, only in Prettyphoto not. I have no idea what this can be. :expressionless:

There is an error in console when you try to run vimeo:

Uncaught TypeError: Cannot read property ‘2’ of null

Wherever its coming from hopefully it gets fixed soon.

Hi! I was facing the same issue and found a quick fix, it got my Vimeo Video running!
in prettyPhoto.js. change the regExp line:
from:

var regExp = /http(s?)://(www.)?vimeo.com/(\d+)/;

to:

var regExp = /http(s?)://(www.)?player.vimeo.com/video/(\d+)/;

Hope this helps
Akhil