coppermine-gallery.com/forum

No Support => General discussion (no support!) => Topic started by: dke on December 15, 2007, 12:31:11 PM

Title: [Solved] Anyone up for a challenge (Disable Context Menu in DivX Webplayer)
Post by: dke on December 15, 2007, 12:31:11 PM
Hello,

First of all, i know this is a "outside"-coppermine subject and it goes unsupported, but i just though it would be wise to ask, cause i believe with the right knowledge it isn't to hard to do.

I've successfully installed Divx Webplayer on my gallery

$players['DIVX'] = array('id' => 'DivX',
'clsid' => 'classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"',
'codebase' => 'codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"',
'mime' => 'type="video/divx"'


However i would like to add <param name="allowContextMenu" value="false" /> so each time a page with a video is loaded the Context menu is disabled. I've tried to this on my own but i fail to understand where to put the correct code, coppermine is to advanced for me.

There's a very good documentation for the Divx Webplayer, but it does not cover how to implement this setting into coppermine gallery.

For the Divx Webplayer SDK Click: http://download.divx.com/player/DivXWebPlayer_WebmasterSDK.zip (http://download.divx.com/player/DivXWebPlayer_WebmasterSDK.zip)

I would be forever grateful if anyone would be kind enough to help me with this!

Merry Christmas & Happy new year!
Title: Re: Anyone up for a challenge (Disable Context Menu in DivX Webplayer)
Post by: dke on February 25, 2008, 03:36:00 PM
I solved this:

theme.php:

$pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" AllowChangeDisplaySize="1" " allowContextMenu="false" " mode="mini" " bannerEnabled="false" " movieTitle="dke_video" '.' autostart="'.$autostart.'" '.$player['mime'].'></embed>