Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
July 04, 2009, 05:17:55 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Maintenance release cpg1.4.25 - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix an issue with http uploads that could occur in particular versions of PHP.The fix is not security-critical, so if your gallery is running fine with cpg1.4.23 or cpg1.4.24 you don't need to upgrade. If you are running an older version than cpg1.4.23, you must update to this latest version as soon as possible because of the security impact (the past few maintenance releases before cpg1.4.24 all were security-related).
[more]
   Home   Help Search Board rules Login Register  
Pages: [1] 2 3 4 5 ... 8   Go Down
  Print  
Author Topic: FLV Player Integration MOD  (Read 89132 times)
0 Members and 1 Guest are viewing this topic.
gwendolyn Topic starter
Contributor
Coppermine newbie
***
Gender: Female
Posts: 7


ey its me :D:D


WWW
« on: July 24, 2006, 01:39:36 am »

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

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:
                // 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:
                // 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:
$pic_html  = '<object id="'.$player['id'].'" '.$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';

replace with

Code:
$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 Smiley Smiley

hf  Roll Eyes Tongue

°gwenny  Roll Eyes Tongue
« Last Edit: July 26, 2006, 05:51:36 am by GauGau » Logged

tryin to fit a square into a circle was my life Cheesy Cheesy
luapo
Coppermine newbie

Posts: 2


« Reply #1 on: July 25, 2006, 02:23:04 am »

Thanks for this mod, very easy to implement exactly what I was looking for. Just have one small issue the .flv files seem to play properly in firefox, however in IE6 & 7 they don't work at all. The click to play screen will show but the file will not load?

I tried searching the forums @ http://www.jeroenwijering.com/?forum=Flash_FLV_Player . There were a few issues with the transparent tag and CSS, tried using but this did not fix the problem.

Current flash version installed.

Has anyone had this working in IE6 or 7? Or is this just a problem with me  Cry

Any ideas?
Logged
gwendolyn Topic starter
Contributor
Coppermine newbie
***
Gender: Female
Posts: 7


ey its me :D:D


WWW
« Reply #2 on: July 25, 2006, 03:49:16 pm »

seeking for a workaround Smiley Smiley
--->
also did not work for me Smiley Smiley

but now it works on

- IE6 on xp and win2000

thx for bugreport,
wouldnt have find it cause i dont use IE  Roll Eyes Tongue

updated code plz rereplace Smiley Smiley
« Last Edit: July 25, 2006, 05:09:33 pm by gwendolyn » Logged

tryin to fit a square into a circle was my life Cheesy Cheesy
luapo
Coppermine newbie

Posts: 2


« Reply #3 on: July 25, 2006, 11:57:14 pm »

Works great in IE7 too. Thanks Again  Wink
Logged
SnitchSeeker
Coppermine novice
*
Posts: 27


« Reply #4 on: December 05, 2006, 08:27:30 am »

This looks great! It may be perfect for what I need.

Is there a demo out there or can you give me a link to a page where you use it on your site?

Is there a way to insert a site logo as watermark in the videos?
Logged
gwendolyn Topic starter
Contributor
Coppermine newbie
***
Gender: Female
Posts: 7


ey its me :D:D


WWW
« Reply #5 on: December 17, 2006, 10:03:47 pm »

hi seeker Cheesy:D

click here for http://213.239.198.200/atw/forumgallery/thumbnails.php?album=53 demo Cheesy:D

about the watermarks,
i just can say,
resampling of the movie would be needed...
but me always uploaded flv files directly,
this is no mpg avi to flv mod...
and this would be a quiter bigger project i think...
cause of resampling the movies,
and dont know (right now) how to decode mpg to flv and such on linux,
but nice idea...
ill watch for myself for a workaround...
if ill have success, ill release it here in forum Cheesy:D
Logged

tryin to fit a square into a circle was my life Cheesy Cheesy
gecekusu
Coppermine newbie

Posts: 3


« Reply #6 on: December 26, 2006, 01:42:54 am »

thank you very very much.it was what i exactly looking for.works perfect HERE
Logged
haga45
Coppermine newbie

Posts: 5


WWW
« Reply #7 on: December 31, 2006, 07:37:44 pm »

WOW!!!  I had posted earlier looking for an FLV solution and somehow missed this thread and MOD.  I followed the instructions and BINGO - worked perfect the first time!!!  YEAH!!

The only issue that I have now is that I did have some SWF files loaded that pointed to FLV files - these no longer work, so this might need to be looked at. The SWF/FLV combo files were created from Sorenson Squeeze 4.3 and the SWF file provided a way to load FLV video under SWF.   I'm ok with this limitation, because my goal was only to show FLV files, but this might be a problem for someone else.

Thanks!
Logged
pdiddy8117
Coppermine regular visitor
**
Gender: Male
Posts: 66

luxuriousmodels.com


WWW
« Reply #8 on: January 02, 2007, 12:06:55 am »

followed all instructions but i don't know where to put code I went to sample/themes to get code then placed in i dont want to put code on forum because im not sure if a long code is allowed i just need to know where exactlly to put the code and where to stop copying from in the sample themes. HELP Huh
Logged
pdiddy8117
Coppermine regular visitor
**
Gender: Male
Posts: 66

luxuriousmodels.com


WWW
« Reply #9 on: January 02, 2007, 12:59:55 am »

Got it to work but it doesnt work with my opera browser. Any help? Thanks
Logged
jape
Coppermine newbie

Posts: 8


« Reply #10 on: January 09, 2007, 07:24:29 am »

Why don´t work anything browser??? advices...??  Smiley

example, IE 7 screenshot: i click white screen, but not happend anything...
(http://xs411.xs.to/xs411/07022/flv_ie7_pic1.gif)

Thanks any help... Smiley



Logged
Joachim Müller
Administrator
Coppermine addict
*****
Gender: Male
Germany Germany

Posts: 43469


aka "GauGau"


WWW
« Reply #11 on: January 09, 2007, 07:33:42 am »

Screenshots or reports that just say "doesn't work for me" are not helpfull. Post actual (deep) links.
Logged

Don't contact me over PM or email unless I asked you to. Instead: post on the proper board. All unrequested messages will be ignored!
jape
Coppermine newbie

Posts: 8


« Reply #12 on: January 09, 2007, 08:03:27 am »

I´m sorry but my website not public yet....  Sad
...separate my websites this working, but not copppermine gallerys.

Gallery version is: 1.4.10
Theme is: WaterDrop
sample.php files location: /home/admin/public_html/gallery/themes/sample
My flvplayer.swf files is location: /home/admin/public_html/gallery
My video.flv files is location: /home/admin/public_html/gallery/albums/userpics/10066/video.flv
Filetype mod is installed and add new filetype: flv     application/x-shockwave-flash     movie     Flash player


This is my sample.php files stump...

...
Code:
$players['SWF'] = array('id' => 'SWFlash',
                                'clsid' => ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ',
                                'codebase' => 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ',
                                'mime' => 'type="application/x-shockwave-flash" '
                               );
       $players['UNK'] = array('id' => 'DefaultPlayer',
                                'clsid' => '',
                                'codebase' => '',
                                'mime' => ''
                               );

        if (isset($_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'])) {
            $user_player = $_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'];
        } else {
            $user_player = $mime_content['player'];
        }

               // 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";

}
    }
etc...

I hope this info is help... thanks  Grin
Logged
Joachim Müller
Administrator
Coppermine addict
*****
Gender: Male
Germany Germany

Posts: 43469


aka "GauGau"


WWW
« Reply #13 on: January 09, 2007, 08:08:08 am »

The sample theme is irrelevant and not being taken into account.
Logged

Don't contact me over PM or email unless I asked you to. Instead: post on the proper board. All unrequested messages will be ignored!
jape
Coppermine newbie

Posts: 8


« Reply #14 on: January 09, 2007, 08:20:03 am »

But where paste this code?
Code:
// 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";

}
    }

My water drop themes no be this replace codes:

Code:
// 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";
    }


This is my water drop theme.php

Code:
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.10
  $Source$
  $Revision: 3275 $
  $Author: gaugau $
  $Date: 2006-09-03 12:10:47 +0200 (So, 03 Sep 2006) $
**********************************************/

define('THEME_IS_XHTML10_TRANSITIONAL',1); // Remove this if you edit this template until
                                           // you have validated it. See docs/theme.htm.

// HTML template for template sys_menu spacer
$template_sys_menu_spacer ='<img src="themes/water_drop/images/orange_carret.gif" width="8" height="8" border="0" alt="" />';

?>
Logged
jape
Coppermine newbie

Posts: 8


« Reply #15 on: January 09, 2007, 09:05:20 am »

Ou.... Now working  Smiley
I paste this code my water_drop/theme.php files...

Code:
// Displays a picture
function theme_html_picture()
{
    global $CONFIG, $CURRENT_PIC_DATA, $CURRENT_ALBUM_DATA, $USER;
    global $album, $comment_date_fmt, $template_display_media;
    global $lang_display_image_php, $lang_picinfo;

    $pid = $CURRENT_PIC_DATA['pid'];
    $pic_title = '';

    if (!isset($USER['liv']) || !is_array($USER['liv'])) {
        $USER['liv'] = array();
    }
    // Add 1 to hit counter
    if (!USER_IS_ADMIN && !in_array($pid, $USER['liv']) && isset($_COOKIE[$CONFIG['cookie_name'] . '_data'])) {
        add_hit($pid);
        if (count($USER['liv']) > 4) array_shift($USER['liv']);
        array_push($USER['liv'], $pid);
    }

    if($CONFIG['thumb_use']=='ht' && $CURRENT_PIC_DATA['pheight'] > $CONFIG['picture_width'] ){ // The wierd comparision is because only picture_width is stored
      $condition = true;
    }elseif($CONFIG['thumb_use']=='wd' && $CURRENT_PIC_DATA['pwidth'] > $CONFIG['picture_width']){
      $condition = true;
    }elseif($CONFIG['thumb_use']=='any' && max($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']) > $CONFIG['picture_width']){
      $condition = true;
    }else{
     $condition = false;
    }

    if ($CURRENT_PIC_DATA['title'] != '') {
        $pic_title .= $CURRENT_PIC_DATA['title'] . "\n";
    }
    if ($CURRENT_PIC_DATA['caption'] != '') {
        $pic_title .= $CURRENT_PIC_DATA['caption'] . "\n";
    }
    if ($CURRENT_PIC_DATA['keywords'] != '') {
        $pic_title .= $lang_picinfo['Keywords'] . ": " . $CURRENT_PIC_DATA['keywords'];
    }

    if (!$CURRENT_PIC_DATA['title'] && !$CURRENT_PIC_DATA['caption']) {
        template_extract_block($template_display_media, 'img_desc');
    } else {
        if (!$CURRENT_PIC_DATA['title']) {
            template_extract_block($template_display_media, 'title');
        }
        if (!$CURRENT_PIC_DATA['caption']) {
            template_extract_block($template_display_media, 'caption');
        }
    }

    $CURRENT_PIC_DATA['menu'] = html_picture_menu(); //((USER_ADMIN_MODE && $CURRENT_ALBUM_DATA['category'] == FIRST_USER_CAT + USER_ID) || ($CONFIG['users_can_edit_pics'] && $CURRENT_PIC_DATA['owner_id'] == USER_ID && USER_ID != 0) || GALLERY_ADMIN_MODE) ? html_picture_menu($pid) : '';

    if ($CONFIG['make_intermediate'] && $condition ) {
        $picture_url = get_pic_url($CURRENT_PIC_DATA, 'normal');
    } else {
        $picture_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');
    }

    $image_size = compute_img_size($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight'], $CONFIG['picture_width']);

    $pic_title = '';
    $mime_content = cpg_get_type($CURRENT_PIC_DATA['filename']);


    if ($mime_content['content']=='movie' || $mime_content['content']=='audio') {

        if ($CURRENT_PIC_DATA['pwidth']==0 || $CURRENT_PIC_DATA['pheight']==0) {
            $CURRENT_PIC_DATA['pwidth']  = 320; // Default width

            // Set default height; if file is a movie
            if ($mime_content['content']=='movie') {
                $CURRENT_PIC_DATA['pheight'] = 240; // Default height
            }
        }

        $ctrl_offset['mov']=15;
        $ctrl_offset['wmv']=45;
        $ctrl_offset['swf']=0;
        $ctrl_offset['rm']=0;
        $ctrl_offset_default=45;
        $ctrl_height = (isset($ctrl_offset[$mime_content['extension']]))?($ctrl_offset[$mime_content['extension']]):$ctrl_offset_default;
        $image_size['whole']='width="'.$CURRENT_PIC_DATA['pwidth'].'" height="'.($CURRENT_PIC_DATA['pheight']+$ctrl_height).'"';
    }

    if ($mime_content['content']=='image') {
        if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth']+5;  //the +'s are the mysterious FF and IE paddings
            $winsizeY = $CURRENT_PIC_DATA['pheight']+3; //the +'s are the mysterious FF and IE paddings
            $pic_html = "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\"\" /><br />\n";
        }
    } elseif ($mime_content['content']=='document') {
        $pic_thumb_url = get_pic_url($CURRENT_PIC_DATA,'thumb');
        $pic_html = "<a href=\"{$picture_url}\" target=\"_blank\" class=\"document_link\"><img src=\"".$pic_thumb_url."\" border=\"0\" class=\"image\" /></a>\n<br />";
    } else {
        $autostart = ($CONFIG['media_autostart']) ? ('true'):('false');

        $players['WMP'] = array('id' => 'MediaPlayer',
                                'clsid' => 'classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" ',
                                'codebase' => 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ',
                                'mime' => 'type="application/x-mplayer2" ',
                               );
        $players['RMP'] = array('id' => 'RealPlayer',
                                'clsid' => 'classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ',
                                'codebase' => '',
                                'mime' => 'type="audio/x-pn-realaudio-plugin" '
                               );
        $players['QT']  = array('id' => 'QuickTime',
                                'clsid' => 'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ',
                                'codebase' => 'codebase="http://www.apple.com/qtactivex/qtplugin.cab" ',
                                'mime' => 'type="video/x-quicktime" '
                               );
                                       
  $players['SWF'] = array('id' => 'SWFlash',
                                'clsid' => ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ',
                                'codebase' => 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ',
                                'mime' => 'type="application/x-shockwave-flash" '
                               );
       $players['UNK'] = array('id' => 'DefaultPlayer',
                                'clsid' => '',
                                'codebase' => '',
                                'mime' => ''
                               );

        if (isset($_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'])) {
            $user_player = $_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'];
        } else {
            $user_player = $mime_content['player'];
        }
// 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";

}
    }

    $CURRENT_PIC_DATA['html'] = $pic_html;
    $CURRENT_PIC_DATA['header'] = '';
    $CURRENT_PIC_DATA['footer'] = '';

    $CURRENT_PIC_DATA = CPGPluginAPI::filter('file_data',$CURRENT_PIC_DATA);

    $params = array('{CELL_HEIGHT}' => '100',
        '{IMAGE}' => $CURRENT_PIC_DATA['header'].$CURRENT_PIC_DATA['html'].$CURRENT_PIC_DATA['footer'],
        '{ADMIN_MENU}' => $CURRENT_PIC_DATA['menu'],
        '{TITLE}' => bb_decode($CURRENT_PIC_DATA['title']),
        '{CAPTION}' => bb_decode($CURRENT_PIC_DATA['caption']),
        );

    return template_eval($template_display_media, $params);
}

Logged
pbcnx
Coppermine newbie

Posts: 2


« Reply #16 on: January 09, 2007, 09:59:37 am »

i have a question.

is it possible to make your own player and integrate it using this code? if possible, how? and thanks Smiley
Logged
pax
Coppermine newbie

Posts: 7


« Reply #17 on: January 23, 2007, 02:00:06 am »

Great mod - nice job!

I guess that auto grabbing a thumbnail from the flv file would be pretty tricky?
Logged
popersman
Coppermine novice
*
Posts: 20


« Reply #18 on: January 24, 2007, 05:45:44 pm »

That's a great mode!! I love it!!

On another hand,
I tried to modify the dimensions of the flv video in the following line:
Code:
$pic_html  = "<object type=\"application/x-shockwave-flash\" width=\"320\" height=\"260\" wmode=\"transparent\" data=\"flvplayer.swf?file=$flv?autoStart=false\">";

I replaced it by
Code:
$pic_html  = "<object type=\"application/x-shockwave-flash\" width=\"640\" height=\"480\" wmode=\"transparent\" data=\"flvplayer.swf?file=$flv?autoStart=false\">";

I am doing this since i kept a VGA resolution for my flv videos. The issue is that while in 320x260 the video run smooth, in vga resolution it plays image by image instead.
Here is a link to the page playing in vga: http://ed.roquette.free.fr/photo/displayimage.php?album=87&pos=0

Is this because playing VGA resolutions is too demanding on the server?

Thanks!
Logged
popersman
Coppermine novice
*
Posts: 20


« Reply #19 on: January 24, 2007, 05:50:56 pm »

I guess that auto grabbing a thumbnail from the flv file would be pretty tricky?
I've seen that done by rphMedia on his website (http://gallery.rphmedia.net/), albeit he was using wmv file (see here.
I'd be pretty curious to see how he does that.
Logged
Pages: [1] 2 3 4 5 ... 8   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.097 seconds with 18 queries.