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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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