Closed tobiasvielmetter closed 11 years ago
I've got a vimeo video integration plugin in my local Gallery code repository, will probably publish it very soon.
Ok, thanks, I guess I will wait for you to publish the vimeo integration then. Thanks again! T
New version is online: https://github.com/blueimp/Gallery#vimeo
Please note that there is currently a bug which prevents playback on IE8 with the Vimeo integration. Specifically, the Vimeo iframe doesn't send postMessage requests for dynamically created iframes on IE8. I've added a JSFiddle to demonstrate the problem: http://jsfiddle.net/VjL8e/embedded/result/ You'll see console statements for the ready event in all other browsers, but in IE only for the first video.
Thanks so much, this is great!
I have now my vimeo videos mixed with my images like this:
<section id="content">
<p class="artwork-slide artwork-video" id="galleryimg_0"><a href="https://vimeo.com/75976293" title="title Video" type="text/html" data-vimeo="75976293"><iframe src="http://player.vimeo.com/video/75976293?title=0&byline=0&portrait=0&color=FFF&autoplay=0" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></a></p>
<p class="artwork-slide artwork-slide-margin" id="galleryimg_1"><a href="http://192.168.178.28/vielmetter.com_basis/public/images/artworks/26/1293617779_1.jpg" title="title here"><img id="artistimg_38994" src="http://192.168.178.28/vielmetter.com_basis/public/images/artworks/26/1293617779_1.jpg" alt="title here" title="title here" class="img-responsive"></a></p>
</section>
an then I call the light box gallery with:
$('#content').click(function (event) {
event = event || window.event;
var target = event.target || event.srcElement,
link = target.src ? target.parentNode : target,
options = {
index: link,
event: event,
hidePageScrollbars: true,
disableScroll: true
},
links = this.getElementsByTagName('a');
blueimp.Gallery(links, options);
});
Practically the vimeo integration works like this. Some things are a bit confusing though:
Anyhow, thanks for integrating vimeo!
Best,
T
The reason why the Gallery shows the poster image and play button instead of the video has two reasons:
Regarding the space bar, my suggestion for now is to disable the functionality for the Gallery by setting toggleSlideshowOnSpace to false when displaying YouTube/Vimeo videos.
how do I go to load an html file within this plugin, there is that possibility.
Hi again,
in order to not work on several topics in one post, I am starting another one here. You have mentioned in my prior post, that I would be able to integrate Vimeo via my own factory method.
What I am trying to achieve is something where I have several images and videos in one container, that all should be displayable in a light box:
I guess where I am stuck right now is how to add all these to the Gallery lightbox. With just the images I was able to all add them and initiate the Gallery with:
After adding the textFactory (in an additional js file) as suggested I am now wondering how to integrate the content of the p.text-content in the order of appearence mixed in with the images. I tried wrapping the iframes in a-tags in order to be captured by the this.getElementsByTagName() function... well basically I have no idea how to achieve this. Any hint would be appreciated.
Thanks for your endurance :-)
Best,
T