forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: cavok on December 14, 2010, 12:28:36 pm

Title: AVI not read with 1.5.10
Post by: cavok on December 14, 2010, 12:28:36 pm
Hello, since I went from version 1.5.9 to version 1.5.10, AVI videos in my Firefox no longer read, while in IE there is no problem.
Thank's for your help.
Title: Re: AVI not read with 1.5.10
Post by: Αndré on December 14, 2010, 01:45:26 pm
Copy the function theme_html_picture from themes/sample/theme.php to your theme's theme.php file. Then, find
Code: [Select]
            $players['WMP'] = array('id' => 'MediaPlayer',
                                    'clsid' => 'classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ',
                                    'codebase' => 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ',
                                    'mime' => 'type="application/x-mplayer2" ',
                                   );
and replace with
Code: [Select]
            $players['WMP'] = array('id' => 'MediaPlayer',
                                    'clsid' => '',
                                    'codebase' => 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ',
                                    'mime' => 'type="application/x-mplayer2" ',
                                   );
Title: Re: AVI not read with 1.5.10
Post by: cavok on December 14, 2010, 11:00:23 pm
André thank you for that answer.
But until I tried your answer from Video Player problem (http://forum.coppermine-gallery.net/index.php/topic,68600.0.html) where the problem seems similar.
either:
Please try the following. Open include/themes.inc.php, find
Code: [Select]
$pic_html  = '<object id="'.$player['id'].'" '.$player['data'].$player['clsid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';and replace with
Code: [Select]
$pic_html  = '<object id="'.$player['id'].'" '.$player['data'].$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
And it works.

Would you prefer that I keep making your changes on the previous topic (which looks more simple and that works).
Or try to apply even when your proposal here.
Title: Re: AVI not read with 1.5.10
Post by: Αndré on December 15, 2010, 08:53:31 am
The changes in the other thread will break the playback of Quicktime movies, so I'd prefer the proposal I just gave you here.
Title: Re: AVI not read with 1.5.10
Post by: cavok on December 17, 2010, 12:40:21 pm
I did as recommended, it works well.

Should I make this change for each update or it will be integrated ?
Title: Re: AVI not read with 1.5.10
Post by: Αndré on December 17, 2010, 01:28:33 pm
I try to find a solution that works with all movie formats.