PicLens Flash Video Support

jacobsjg

Joined: 2007-08-20
Posts: 8
Posted: Sat, 2008-06-21 11:25

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?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2008-06-21 11:29
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2008-06-22 01:29

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

 
jacobsjg

Joined: 2007-08-20
Posts: 8
Posted: Sun, 2008-06-22 17:35

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.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2008-08-01 16:36

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

 
jacobsjg

Joined: 2007-08-20
Posts: 8
Posted: Fri, 2008-08-01 17:20

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.

 
neven

Joined: 2006-09-19
Posts: 16
Posted: Fri, 2008-08-01 17:29
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2008-08-03 23:17

@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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2008-08-04 00:03

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2008-08-05 16:02

@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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2008-08-05 16:12

Well then an exception needs to be added I guess.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Tonton_Fred

Joined: 2005-04-17
Posts: 28
Posted: Thu, 2008-09-04 13:16

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2008-09-05 20:53

> 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

 
johanna10

Joined: 2009-05-09
Posts: 2
Posted: Sat, 2009-05-09 11:26

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.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2009-05-09 12:11