coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: esfbc on May 09, 2017, 02:40:40 AM

Title: Native MP4 Player
Post by: esfbc on May 09, 2017, 02:40:40 AM
most modern browsers have support for native mp4 and it works well, much better than flash.

I used the plugin called mp4_player

file codebase.php comment lines that start with $pic_html

just under the commented lines add the line:
$pic_html = "<video {$autostart} loop poster=\"{$thumb}\" width=\"{$CURRENT_PIC_DATA['pwidth']}\" height=\"{$CURRENT_PIC_DATA['pheight']}\" controls><source src=\"{$file}\" type=\"video/mp4\">Your browser does not support the video tag.</video>";

and you will get a native mp4 player
Title: Re: Native MP4 Player
Post by: esfbc on May 09, 2017, 02:42:30 AM
the original plugin (http://forum.coppermine-gallery.net/index.php?topic=59481.0)
Title: Re: Native MP4 Player
Post by: esfbc on May 09, 2017, 02:50:39 AM
I have to plug my site (http://gallery.esfbc.com/)  ;)  please, no ddos  ;D ;) ;) ;D