General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
wmp as default player
Posted by: 123qwe
Date: June 05, 2007 05:34AM

hi ! Im a new with k-m . how can I set wmp as my default player ; try set it in my program default , after restart .. it goes back to old setting ! any idea .
thanks.

Options: ReplyQuote
Re: wmp as default player
Date: June 05, 2007 06:10AM

I'm assuming you mean having WMP play embedded videos? Do to that, you need to use ActiveX. We all know the ActiveX leads to spyware and viruses, which is why K-Meleon does not include support for ActiveX components. There is an unofficial made by Fred that has restrictive support for ActiveX, specifically WMP. See HERE for more info., and maybe he can fill in the blanks as to HOW he does it.

Options: ReplyQuote
Re: wmp as default player
Posted by: guenter
Date: June 05, 2007 10:39AM

1.1 is not made to support Media player out of the box (reason stated above).
Generally a plugin that is in K-Meleon's plugins folder is prefered by the browser. The players settings also influence it - the wanted player should best be system default player for the content.

How plugins are scanned and de and activated.

Installing Infra Structure for Media Player:
Media player needs activeX nowadays. ActiveX can be installed using a Firefox 1.5 package from Mozilla.org. Open and save the file (never mind how it looks).

How to install manually.
except that they do not mention that You have to delete ./K-Meleon/components/compreg.dat and ./K-Meleon/components/xpti.dat so that the new components that You installed are included. K-Meleon will make fresh ones on next startup.

As pointed out by simpleinventor You probably want to restrict the ActiveX support.

Fred (for the 0.9 mentioned) edited the activeX.js (which You will find in Your package) to include only
known safe features. Best You edit the activeX.js also. After the line filled with "/" I pasted an example activeX.js. You can copy paste it into Your activeX.js. Lines starting with // are comments. Lines starting with pref or user_pref are long lines, and Forum breaks them (please repair - also when they are commented out and reach into next line ). If You need other plugins You can add them - provided You know their unique ClassID CID-number. Windows XP after 2nd service pack also white lists and AFAIK K-Meleon will use IEs white list.

The last K-Meleon 0.9 and some of Hao's CCF have activeX support out of the box so that You could have a look. Guess we should make an installer package some day.
We are a support Forum after all smiling smiley



///////////////////////////////////////////////////////////////////////////////
// By default the ActiveX support for FireFox is a WHITELIST.
// Only a pre-installed Windows Media Player control is enabled by default. If
// you want to open up the plugin to other controls, read the instructions
// and sample prefs below to learn how to do it.


pref("security.xpconnect.activex.global.hosting_flags", 9);
pref("security.classID.allowByDefault", false);
pref("capability.policy.default.ClassID.CID6BF52A52-394A-11D3-B153-00C04F79FAA6", "AllAccess");
pref("capability.policy.default.ClassID.CID22D6F312-B0F6-11D0-94AB-0080C74C7E95", "AllAccess");


///////////////////////////////////////////////////////////////////////////////
// General hosting flags settings. Read nsIActiveXSecurityPolicy.idl in
// http://lxr.mozilla.org/seamonkey/find?string=nsIActiveXSecurityPolicy.idl
// for more combinations.
//
// Briefly,
//
// 0 means no hosting of activex controls whatsoever
// 13 means medium settings (safe for scripting controls and download / install)
// 31 means host anything (extremely dangerous!)
//

// pref("security.xpconnect.activex.global.hosting_flags", 13);


///////////////////////////////////////////////////////////////////////////////
// Whitelist / Blacklist capabilities
//
// The whitelist and blacklist settings define what controls Gecko will host
// and the default allow / deny behavior.
//
// Note 1:
//
// The hosting flags pref value above takes priority over settings below.
// Therefore if the hosting flags are set to 0 (i.e. host nothing) then
// no control will be hosted no matter what controls are enabled. Likewise,
// If safe for scripting checks are (wisely) enabled, no unsafe control
// will be hosted even if it is explicitly enabled below.
//
//
// Note 2:
//
// Gecko always reads the IE browser's control blacklist if one is defined
// in the registry. This is to ensure any control identified by Microsoft
// or others as unsafe is not hosted without requiring it to be explicitly
// listed here also.
//


///////////////////////////////////////////////////////////////////////////////
// This pref sets the default policy to allow all controls or deny them all
// default. If the value is false, only controls explicitly enabled by their
// classid will be allowed. Otherwise all controls are allowed except those
// explicitly disabled by their classid.
//
// If you are writing an embedding application that only needs to run
// certain known controls, (e.g. an intranet control of some kind) you are
// advised to use the false value and enable the control explicitly.

// pref("security.classID.allowByDefault", true);


///////////////////////////////////////////////////////////////////////////////
// Specify below the controls that should be explicitly enabled or disabled.
// This is achieved by writing a policy rule, specifiying the classid of the
// control and giving the control "AllAccess" or "NoAccess".
//
// CIDaaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
//
// You could explicitly ban a control (using the appropriate classid) like this
//
// pref("capability.policy.default.ClassID.CID039ef260-2a0d-11d5-90a7-0010a4e73d9a", "NoAccess");
//
// If you want to explicity enable a control then do this:
//
// pref("capability.policy.default.ClassID.CID039ef260-2a0d-11d5-90a7-0010a4e73d9a", "AllAccess");
//
// If you want to explicitly ban or allow a control for one or more sites then
// you can create a policy for those sites. This example creates a domain
// called 'trustable' containing sites where you allow an additional control
// to be hosted.:
//
// user_pref("capability.policy.policynames", "trustable");
// user_pref("capability.policy.trustable.sites", "http://www.site1.net http://www.site2.net"winking smiley;
// user_pref("capability.policy.trustable.ClassID.CID039ef260-2a0d-11d5-90a7-0010a4e73d9a", "AllAccess");
//



Edited 2 time(s). Last edit at 06/05/2007 02:27PM by guenter.

Options: ReplyQuote
Re: wmp as default player
Posted by: 123qwe
Date: June 06, 2007 03:14AM

thanks for the inform. you guys are great .

Options: ReplyQuote


K-Meleon forum is powered by Phorum.