Advanced search  

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]

Pages: 1 ... 7 8 9 10 [11]   Go Down

Author Topic: FLV Player Integration MOD  (Read 275631 times)

0 Members and 1 Guest are viewing this topic.

Joerg-Andre

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
Re: FLV Player Integration MOD
« Reply #200 on: February 24, 2011, 04:10:38 pm »

hello all  :D :D
made a small player integration into coppermine gallery for FLV-Videos  :D :D
im no php pro or such .DD
what ull see if u r one *smile*
but it works and was the thing i needed :) :)

here are coming the install instructions:

1. download filetype editor MOD http://forum.coppermine-gallery.net/index.php?topic=24186.msg111120#msg111120

2. make new filetype "flv     application/x-shockwave-flash     movie     Flash player"

3. open theme.php (if code isnt insde paste the function "theme_html_picture" from /theme/sample/theme.php)

a) search for

Code: [Select]
                // There isn't a player selected or user wants client-side control
        if (!$user_player) {
            $user_player = 'UNK';
        }

        $player = $players[$user_player];

        $pic_html  = '<object id="'.$player['id'].'" '.$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
        $pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\"". $picture_url . "\" />";
        $pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
        $pic_html .= "</object><br />\n";
    }

replace with

Code: [Select]
                // There isn't a player selected or user wants client-side control
        if (!$user_player) {
            $user_player = 'UNK';
        }

        if ($mime_content['content']=='movie' && $mime_content['extension']=='flv') {
    $flv =  $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];
    $pic_html  = "<object type=\"application/x-shockwave-flash\" width=\"320\" height=\"260\" wmode=\"transparent\" data=\"flvplayer.swf?file=$flv?autoStart=false\">";
    $pic_html .= "<param name=\"movie\" value=\"flvplayer.swf?file=$flv?autoStart=false\" />";
    $pic_html .= "<param name=\"wmode\" value=\"transparent\" />";
            $pic_html .= "</object><br />\n";

        } else {

        $player = $players[$user_player];

        $pic_html  = '<object id="'.$player['id'].'" '.$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
        $pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\"". $picture_url . "\" />";
        $pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
        $pic_html .= "</object><br />\n";

}
    }

b)
if u got problem with browser asking for plugin (on watchin other videos avi,mpg,wmf...) but the right one is installed:

search for

Code: [Select]
$pic_html  = '<object id="'.$player['id'].'" '.$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
replace with

Code: [Select]
$pic_html  = '<object id="'.$player['id'].'" '.$player['clsid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
4. download the flvplayer package from http://www.jeroenwijering.com/?item=Flash_Video_Player and upload "flvplayer.swf" to gallery root

5. upload flv files and watch them on ur site :) :)

hf  ::) :P

°gwenny  ::) :P

Hallo,
i make it so how you show it here.
but it doesent work.
what did i make for an mistake?
i use version 1.4.27 stram mod
can you help me?
and witch code do you mean what is in sample php?
can you put here the code?

mfg
Jörg-André
Logged

Joerg-Andre

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
Re: FLV Player Integration MOD
« Reply #201 on: February 24, 2011, 04:12:39 pm »

hello all  :D :D
made a small player integration into coppermine gallery for FLV-Videos  :D :D
im no php pro or such .DD
what ull see if u r one *smile*
but it works and was the thing i needed :) :)

here are coming the install instructions:

1. download filetype editor MOD http://forum.coppermine-gallery.net/index.php?topic=24186.msg111120#msg111120

2. make new filetype "flv     application/x-shockwave-flash     movie     Flash player"

3. open theme.php (if code isnt insde paste the function "theme_html_picture" from /theme/sample/theme.php)

a) search for

Code: [Select]
                // There isn't a player selected or user wants client-side control
        if (!$user_player) {
            $user_player = 'UNK';
        }

        $player = $players[$user_player];

        $pic_html  = '<object id="'.$player['id'].'" '.$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
        $pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\"". $picture_url . "\" />";
        $pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
        $pic_html .= "</object><br />\n";
    }

replace with

Code: [Select]
                // There isn't a player selected or user wants client-side control
        if (!$user_player) {
            $user_player = 'UNK';
        }

        if ($mime_content['content']=='movie' && $mime_content['extension']=='flv') {
    $flv =  $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];
    $pic_html  = "<object type=\"application/x-shockwave-flash\" width=\"320\" height=\"260\" wmode=\"transparent\" data=\"flvplayer.swf?file=$flv?autoStart=false\">";
    $pic_html .= "<param name=\"movie\" value=\"flvplayer.swf?file=$flv?autoStart=false\" />";
    $pic_html .= "<param name=\"wmode\" value=\"transparent\" />";
            $pic_html .= "</object><br />\n";

        } else {

        $player = $players[$user_player];

        $pic_html  = '<object id="'.$player['id'].'" '.$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
        $pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\"". $picture_url . "\" />";
        $pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
        $pic_html .= "</object><br />\n";

}
    }

b)
if u got problem with browser asking for plugin (on watchin other videos avi,mpg,wmf...) but the right one is installed:

search for

Code: [Select]
$pic_html  = '<object id="'.$player['id'].'" '.$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
replace with

Code: [Select]
$pic_html  = '<object id="'.$player['id'].'" '.$player['clsid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
4. download the flvplayer package from http://www.jeroenwijering.com/?item=Flash_Video_Player and upload "flvplayer.swf" to gallery root

5. upload flv files and watch them on ur site :) :)

hf  ::) :P

°gwenny  ::) :P

Hallo,
i make it so how you show it here.
but it doesent work.
what did i make for an mistake?
i use version 1.4.27 stram mod
can you help me?
and witch code do you mean what is in sample php?
can you put here the code?

mfg
Jörg-André
Logged

siavash82ir

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 2
    • طراحی سایت
Re: FLV Player Integration MOD
« Reply #202 on: September 18, 2019, 06:46:30 pm »

hi, I'm new to the community and Thanks for this active community.

I want to use this player with my gallery, but I have one question
The player's site has an area where you can customize your player: http://www.longtailvideo.com/support/jw-player-setup-wizard
I only want to change the colors player's bar.
How would I implement this into my gallery? 
:)
Logged
Pages: 1 ... 7 8 9 10 [11]   Go Up
 

Page created in 0.023 seconds with 20 queries.