By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,887 Members | 1,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,887 IT Pros & Developers. It's quick & easy.

How to Disable the Right-Click in an Embedded Real & Quick Time players

P: 1
Hi,

I have included an embedded Real Player and an embedded Quick Time
Player for streaming videos, in my web pages.

I'm interested in searching for a method or a script to disable the
right-click option in the embedded Real & Quick Time players, because
I don't want the viewers to download the video but to view it while
streaming.

I will be very much grateful to you if you could kindly help me in
finding a method or a script to disable the right-click in embedded
Real & Quick Time Players.

The embedding code -

- Real Player -

Expand|Select|Wrap|Line Numbers
  1. <OBJECT id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'width="300" height="200">
  2.     <param name='src' value="<?= $media_file ?>">
  3.     <param name='autostart' value="true">
  4.     <param name='controls' value='imagewindow'>
  5.     <param name='console' value='video'>
  6.     <param name='loop' value="true">
  7. <EMBED src="<?= $media_file ?>" width="350" height="231"loop="true" type='audio/x-pn-realaudio-plugin' controls='imagewindow' console='video' autostart="true"></EMBED>
- Quick Time Player -

Expand|Select|Wrap|Line Numbers
  1. <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="235" height="187" standby="Data is loading..." codebase="http://www.apple.com/qtactivex/qtplugin.cab">
  2.     <param name="src" value="<?= $media_path ?><?= $media ?>.<?= $ext ?>">
  3.     <param name="autoplay" value="true">
  4.     <param name="loop" value="false">
  5.     <param name="controller" value="true">
  6.     <embed src="<?= $media_path ?><?= $media ?>.<?= $ext ?>" width="235" height="187" autoplay="true" loop="false" controller="true" pluginspage="www.apple.com/quicktime/download/index.htm"></embed>
  7. </object>
I think this can be done by adding a new parameter I'm testing on it,
hope I'll get a good response with an answer from you!

Thank you.

- Dilshan -
Sep 14 '07 #1
Share this Question
Share on Google+
3 Replies


Atli
Expert 5K+
P: 5,058
Hi Dilshan. Welcome to The Scripts!

I'm going to move your question from the PHP forums to the HTML forums, where it is more likely to get answered.

Moderator
Sep 15 '07 #2

drhowarddrfine
Expert 5K+
P: 7,435
The only way to disable right click is with javascript so I'll send you there.
Sep 15 '07 #3

gits
Expert Mod 5K+
P: 5,389
hi ...

you may do that with javascript but it is one of the most annoying things you may do on a webpage, because you override the standards behaviour of the mouse ... it is against all simple usability rules ... so please don't do that. however in case you want to do it anyway ... you have to capture the event and ask for its detail ... a google search with 'disable right click javascript' will give you a lot of copy and paste scripts to achieve your goal ...

kind regards
Sep 16 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.