471,887 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

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


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

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
3 2432
5,058 Expert 4TB
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.

Sep 15 '07 #2
7,435 Expert 4TB
The only way to disable right click is with javascript so I'll send you there.
Sep 15 '07 #3
5,390 Expert Mod 4TB
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.

Similar topics

7 posts views Thread by Mathias Herrmann | last post: by
2 posts views Thread by Mike Nooney | last post: by
7 posts views Thread by John den Haan | last post: by
56 posts views Thread by Deepan HTML | last post: by
4 posts views Thread by =?Utf-8?B?Z2lkZHk=?= | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.