Deteching Flash Video (FLV) in display_image.php Deteching Flash Video (FLV) in display_image.php
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Deteching Flash Video (FLV) in display_image.php

Started by fszone, March 08, 2006, 11:26:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fszone

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?

fszone


Joachim Müller

why don't you just add flv to coppermine's filetypes table with the same settings as swf?

gnuisnotunix

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).

Joachim Müller

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.

gnuisnotunix

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.

astapelfeld

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


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??

Joachim Müller

don't edit include/themes.inc.php! Never! Under no circumstances!

astapelfeld

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?

Joachim Müller


astapelfeld