blueimp / Gallery

blueimp Gallery is a touch-enabled, responsive and customizable image & video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers. It features swipe, mouse and keyboard navigation, transition effects, slideshow functionality, fullscreen support and on-demand content loading.
https://blueimp.github.io/Gallery/
Other
3.75k stars 984 forks source link

Possible to have a gallery with both images and youtube video? #86

Closed zakiaziz closed 11 years ago

zakiaziz commented 11 years ago

@blueimp, I see examples of building galleries with only images. Is it possible to have one with both youtube video and images?

Also created a stack overflow thread here: http://stackoverflow.com/q/19800798/1043817

blueimp commented 11 years ago

Sure and there's an example right in the docs here: https://github.com/blueimp/Gallery#youtube

zakiaziz commented 11 years ago

Doesn't seem to work for me. Every time I get to the slide that should contain the video I get the error icon sign.

Here is a JSFiddle replicating my problem: http://jsfiddle.net/HhU4K/ Any idea what I'm doing wrong?

blueimp commented 11 years ago

Sorry, I don't have the time to look at individual setups. But as you can see in the demo, both image and video galleries work. Technically, there is no difference for the core plugin between them, as every object in the Gallery list will go through a method which selects the right factory to create the content (image factory, video factory, etc.).

zakiaziz commented 10 years ago

Hey I've moved past this problem but there are many people who are having this problem. You may want to take a minute and answer the question on stackoverflow: http://stackoverflow.com/q/19800798/1043817

thiagodemellobueno commented 10 years ago

Why not help folks out and respond with your solution?

On Wed, Dec 4, 2013 at 4:42 PM, zakiaziz notifications@github.com wrote:

Hey I've moved past this problem but there are many people who are having this problem. You may want to take a minute and answer the question on stackoverflow: http://stackoverflow.com/q/19800798/1043817

— Reply to this email directly or view it on GitHubhttps://github.com/blueimp/Gallery/issues/86#issuecomment-29861522 .

zakiaziz commented 10 years ago

My solution was to switch to FancyBox. I needed an immediate solution so I moved on, but I thought it may be in the best interest of the author to look into this because multiple people were having this problem.