Go Back   CodingForums.com > :: Client side development > Graphics and Multimedia discussions

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-03-2007, 09:20 PM   PM User | #1
Breakpoint
New to the CF scene

 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Breakpoint is an unknown quantity at this point
How to get Firefox not to right click on Windows Media Player?

I am trying to embed WMP into a site where you are unable to right click on the WMP in IE and Firefox, the following code allows me to right click in Firefox but not IE.

Im not sure if I am able to right click because it is a client side problem with my firefox, or if all firefox browsers do this.

Here is the code. (From another site since my site isnt working properly)
Code:
<OBJECT id="MediaPlayer" width="400" height="364" 
		CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
		type="application/x-oleobject">
				
		<PARAM NAME="URL" VALUE="mmst://rx-wes-sea161.rbn.com/farm/pull/mtx-wes-sea03:1259/farm/pull/tx-rbn-sea39:1259/wmtencoder/cspan/cspan/wmlive/cspan1v.asf">
		<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
		<PARAM NAME="AutoStart" VALUE="True">
			
		<PARAM NAME="uiMode" value="mini">
		<PARAM NAME="PlayCount" value="9999">
		<PARAM NAME="stretchToFit" value="True">
		<PARAM NAME="enableContextMenu" value="False">
		<embed 
		type="video/x-ms-wmv"
		src="mmst://rx-wes-sea161.rbn.com/farm/pull/mtx-wes-sea03:1259/farm/pull/tx-rbn-sea39:1259/wmtencoder/cspan/cspan/wmlive/cspan1v.asf" 
		width="400" height="364" 
		autostart="True" 
		sendplaystatechangeevents="True" 
		uimode="mini" 
		playcount="9999" 
		stretchtofit="True" 
		enablecontextmenu="False">
		</embed>
		</OBJECT>
Here is that site http://channelbreak.com/player.php?channel=3

My site wont show the src since it is coded a little different but will basically look the same for windows media player code.

I want it to act like channelchooser.com and chooseandwatch.com

Thank you.
Breakpoint is offline   Reply With Quote
Old 01-04-2007, 12:21 AM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Code:
enablecontextmenu="0"
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 01-04-2007, 05:09 AM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,448
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Of course you still wont be able to block it in Opera because Opera doesn't allow the context menu to be blocked. Nothing you can do to stop people disabling your block in other browsers either.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:42 PM.


Advertisement
Log in to turn off these ads.