Since gallery's flash video player was released I have added more and more videos to my site. PicLens works great for the pictures in an album, but the flv videos in that album do not seem to be getting added to the mediarss feed, so are not shown within PicLens.
From the PicLens site, it indicates all you need to do is:
<item>
<title>Chelsea</title>
<link>http://www.chelseafc.com/</link>
<description>Chelsea Football</description>
<media:thumbnail url="pl_videos/Chelsea.png"/>
<media:content type="video/x-flv" url="pl_videos/Chelsea.flv"/>
</item>
Anyone without a newborn and busy job have time to look into adding flv files to the mediarss file?
Posts: 8339
Are you using G2 v2.3 or picLensRss.php?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32509
right, video's aren't supported in g2's slideshow yet. and it would be a small change. see:
http://fisheye3.atlassian.com/browse/gallery/trunk/gallery2/modules/slideshow/classes/SlideshowHelper.class?r=17603#l173
so all you need to change is the check for GalleryPhotoItem and check for GalleryMovieItem as well and check the movie's mimeType vs. video/x-flv.
no guarantees that this is all, but that's what i'd change first.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 8
Yeah, sounds like a good idea. If I get some time to test I will unless someone beats me to it and posts the results.
I am currently using the latest svn update for gallery2 version 17667.
Posts: 8339
To make this change, modify ~line 159 module/slideshow/classes/SlideshowHelper.class from:
if (GalleryUtilities::isA($child, 'GalleryPhotoItem'))
to:
if (GalleryUtilities::isA($child, 'GalleryPhotoItem') || (GalleryUtilities::isA($child, 'GalleryMovieItem') && $child->getMimeType()== 'video/x-flv'))
Works like a charm
I also fixed my ssp.php to work with flash video ;)
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 8
Yeah, works for me as well. The comment there says the g2 team will add more types when they are sure piclens supports them. Well, it does! I have zero free time to figure out how right now, but someone should update the official source.
Posts: 16
Image Samples:
Wall:
[img]http://www.flashyourweb.com/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=28943&g2_serialNumber=2[/img]
Click To Enlarge
Full Screen:
[img]http://www.flashyourweb.com/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=28949&g2_serialNumber=2[/img]
Click To Enlarge
Gallery is looking more powerful every day.
FlashYourWeb: Carefully Selected Open Source Solutions
Posts: 32509
@Suprsidr:
what about this hack and the JavaScript fallback?
and isn't there any code that expects to show a photo. what if the file is a video?
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 8339
I guess I don't follow you.
We are not trying to render the movie, we simply provide an rss feed for picLens.
And as picLens is flv enabled, we can safely add video/x-flv to the feed.(I tried mp3 without luck)
There is also an option to include a logo in the piclens environment
in SlideshowMediaRss.tpl
add the atom namespace to the feed:
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss" xmlns:atom="http://www.w3.org/2005/Atom">
and then your logo - we used Gallery's ;)
<atom:icon>{g->url forceFullUrl=true}/images/galleryLogo_sm.png</atom:icon>
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 32509
@suprsidr:
if you edit SlideshowHelper, you not only affect the piclens slideshow, but the lytebox slideshow as well.
if piclens isn't installed, or if the client doesn't accept flash, then the client gets a lytebox (JavaScript) based slideshow.
and that slideshow doesn't support videos as far as i know.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 8339
Well then an exception needs to be added I guess.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 28
Hi,
From what I gather, suprsidr's code change would have caused the javascript fallback slideshow to bug when encountering flv files.
I am running 2.3 on SVN, and flv files do not appear in Piclens' slideshow yet. Are there plans to integrate flv files into the feed in 2.3 final ?
Anyway, I'm amazed at the sheer amount of features already present in Gallery, but I guess it's never enough ;)
Thanks,
Fred
Posts: 32509
> Are there plans to integrate flv files into the feed in 2.3 final ?
no, 2.3 is already in its late RC phase. we won't integrate any functional changes for 2.3, just bugfixes and small changes that improve stability and security.
such a change would be a candidate for G2.4.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 2
I have some videos educational videos about pregnancy stages [url]http://3dpregnancy.parentsconnect.com/widget/ [/url] and I want to post them on my personal website and I don`t know how. Can any1 tell me what program I need to use, or at least what should I do to directly post them there? Not through a link of course.
Posts: 8339
Gallery2 comes to mind.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2