coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: fszone on March 08, 2006, 11:26:52 PM

Title: Deteching Flash Video (FLV) in display_image.php
Post by: fszone on March 08, 2006, 11:26:52 PM
I am working on a FLV/SWF player for my gallery. What I want to do is something like this in display_image.php:

if ($mime_content['content']=='flv') {
SWF FLV player content here
}

How can I make it detect only "flv" file types?
Title: Re: Deteching Flash Video (FLV) in display_image.php
Post by: fszone on March 08, 2006, 11:44:09 PM
Sorry - Version 1.3.3
Title: Re: Deteching Flash Video (FLV) in display_image.php
Post by: Joachim Müller on March 09, 2006, 07:44:12 AM
why don't you just add flv to coppermine's filetypes table with the same settings as swf?
Title: Re: Deteching Flash Video (FLV) in display_image.php
Post by: gnuisnotunix on March 12, 2006, 01:03:17 PM
wouldnt the FLV file just be sent to the browser if I add a flv file type?

The FLV file should be downloaded/played by a SWF (flv player).
Title: Re: Deteching Flash Video (FLV) in display_image.php
Post by: Joachim Müller on March 12, 2006, 01:25:22 PM
not if you use the same mime type as for swf. If the flash player that is embedded into your browser is capable to display flv's, it will.
Title: Re: Deteching Flash Video (FLV) in display_image.php
Post by: gnuisnotunix on March 12, 2006, 02:19:17 PM
In that case it would be easier to conver the FLV to SWF.
The advantage of using FLV (played by a swf -flv player-) is that the video starts playing while the file is downloading.
Title: Re: Deteching Flash Video (FLV) in display_image.php
Post by: astapelfeld on March 12, 2006, 05:22:15 PM
It wasnt that difficult  ;D

INSERT INTO `cpgXXX_filetypes` VALUES ('flv', 'video/x-flv', 'movie', 'FLV');

Replace the attached file (/include/themes.inc.php), and use the flvplayer from this thread http://forum.coppermine-gallery.net/index.php?topic=16818.0 (http://forum.coppermine-gallery.net/index.php?topic=16818.0)


Alberto

EDIT: Oops! I made a mistake.. I was searching how to display FLV in CPG1.4 and for some reason I thought this thread was about CPG1.4.. Maybe someone can move this to the Mods??
Title: Re: Deteching Flash Video (FLV) in display_image.php
Post by: Joachim Müller on March 13, 2006, 10:07:56 AM
don't edit include/themes.inc.php! Never! Under no circumstances!
Title: Re: Deteching Flash Video (FLV) in display_image.php
Post by: astapelfeld on March 13, 2006, 10:20:32 AM
why not? I saw this is where the <object> tag for the SWF files is included and I need some special parameters (to define the flv player) to be incluede in the case of a FLV file.. is there any other place to do this?
Title: Re: Deteching Flash Video (FLV) in display_image.php
Post by: Joachim Müller on March 13, 2006, 10:30:16 AM
yes: your custom theme.
Title: Re: Deteching Flash Video (FLV) in display_image.php
Post by: astapelfeld on March 13, 2006, 01:49:01 PM
Thank you .. I'll look into it..