1291 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+5 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
1512 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+2 more
OriginalEXE says

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

1291 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+5 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. :|

1682 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 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 part of the Envato Community for over 1 year
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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by