1072 posts
  • Forum Superstar
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
+1 more
Smartik says

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
1465 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says

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

1072 posts
  • Forum Superstar
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
+1 more
Smartik says

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. :|

1676 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says

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.

1 post
  • Has been a member for 1-2 years
oswalakhil says
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

by
by
by
by
by
by