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?
Sorry - Version 1.3.3
why don't you just add flv to coppermine's filetypes table with the same settings as swf?
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).
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.
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.
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??
don't edit include/themes.inc.php! Never! Under no circumstances!
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?
yes: your custom theme.
Thank you .. I'll look into it..