(cpg 1.5.x) Movie files playing on some browsers but not others (cpg 1.5.x) Movie files playing on some browsers but not others
 

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]

Main Menu

(cpg 1.5.x) Movie files playing on some browsers but not others

Started by dlonskey, September 04, 2015, 05:28:10 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

dlonskey

I have my config settings to allow the following video file formats (asf/asx/mpg/mpeg/wmv/swf/avi/mov/mp4/flv/webm) but some browsers work and other don't. I also have "Flash Media Player (flash_media_player): v2.1" plugin installed and running. Both Firefox and I.E.11 appear to be able to play videos inside my gallery but Chrome & Microsoft Edge don't. Is there a plugin I need to install from your website or from another location installed on that browser in order to make there work? I've attached a pdf showing this. Thanks

Αndré

The flash media player is just used for mp4, flv and webm files. I recommend to convert your videos to mp4 files, so the flash player can play it (or HTML 5 in the long term: http://www.w3schools.com/html/html5_video.asp).

dlonskey

Quote from: Αndré on September 04, 2015, 11:18:15 AM
The flash media player is just used for mp4, flv and webm files. I recommend to convert your videos to mp4 files, so the flash player can play it (or HTML 5 in the long term: http://www.w3schools.com/html/html5_video.asp).

So would the source code fir HTML 5 go into the browser or in one of the cpg templates and where about?

Αndré

Sorry, I don't get what you're asking for. For compatibility reasons I suggested to convert your existing video files to mp4, so you can play them with the flash media player plugin. Alternatively, you can tell Coppermine to use the HTML 5 "video" tag to play your mp4 (or whatever) files. The code is already prepared, you just need to add a new entry to the filetypes table:
        if ($mime_content['player'] == 'HTMLA') {
            $pic_html  = '<audio controls="true" src="' . $picture_url . '" autostart="' . $autostart . '"></audio>';
        } elseif ($mime_content['player'] == 'HTMLV') {
            $pic_html  = '<video controls="true" src="' . $picture_url . '" autostart="' . $autostart . '"' . $image_size['whole'] . '></video>';
        }

dlonskey

Thanks Andre, I'll have to give that a try. Sorry for the late reply but I've been quite busy and haven't been able to check in and try any fixes. Once I have, I'll post the results. Thanks again....you've been helpful when I've needed it...