coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: pdiddy8117 on January 01, 2007, 12:42:08 AM

Title: Why did video uploaded have no control settings?
Post by: pdiddy8117 on January 01, 2007, 12:42:08 AM
I uploaded an mpg video but there was no controls(play,pause...) how can I make sure that it always appears and how do i make it always size i want ie. width 425 height 350
Title: Re: Why did video uploaded have no control settings?
Post by: admadan on January 21, 2007, 08:30:28 PM
I have the exact same problem, but with .mov files. The file will eventually start playing after enough of the clip has been cached and then I can pause and play by double clicking on the video, but the control bar at the bottom that tells me how much has been cached, has the pause/play, and the movie scroll bar is missing. How can I get that to appear in my movies?
Title: Re: Why did video uploaded have no control settings?
Post by: Nibbler on January 21, 2007, 08:42:29 PM
Copy the theme_html_picture() function from themes/sample/theme.php into your theme.php and adjust the control offsets there


        $ctrl_offset['mov']=15;
        $ctrl_offset['wmv']=45;
        $ctrl_offset['swf']=0;
        $ctrl_offset['rm']=0;
        $ctrl_offset_default=45;


That will make the player taller so that the control buttons are displayed.
Title: Re: Why did video uploaded have no control settings?
Post by: admadan on January 21, 2007, 09:48:03 PM
Thanks, that did it, although I had to significantly increase the numbers as well as the default width value to accommodate the size of my videos.


            $CURRENT_PIC_DATA['pwidth']  = 490; // 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']=140;
        $ctrl_offset['wmv']=140;
        $ctrl_offset['swf']=75;
        $ctrl_offset['rm']=70;
        $ctrl_offset_default=140;