| View previous topic :: View next topic |
| Author |
Message |
AndrewBucklin
Joined: 28 Jan 2007 Posts: 7 Location: Yorktown, VA
|
Posted: Sun Jan 28, 2007 5:33 am Post subject: Disable "Properties" option on web player |
|
|
Is there any way to disable the PROPERTIES option when you right click on a video playing in Internet Explorer? I don't want the user to be able see the server's IP address that the content is being streamed from...
I've also disabled the user from viewing the source code of the page. I know this isn't fool proof, but for novice users, it's a start... |
|
| Back to top |
|
 |
tommybcool
Joined: 01 Sep 2006 Posts: 141 Location: Kansas
|
Posted: Sun Jan 28, 2007 4:33 pm Post subject: |
|
|
o.EnableContextMenu(false);
But your visitor loses sizing and video settings capability. You could get a domain from DynDNS so folks would not see your IP. You could even get a webhop from DynDNS that will convert user.example.com:5119 to user.differentexample.net and eliminate the port extension on the end. Of course people could ping your domain, but a software firewall can stop that I think. Probably a router too, haven't done it. |
|
| Back to top |
|
 |
tommybcool
Joined: 01 Sep 2006 Posts: 141 Location: Kansas
|
Posted: Sun Jan 28, 2007 4:40 pm Post subject: |
|
|
| How did you disable source code? |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 04 Aug 2006 Posts: 488
|
Posted: Sun Jan 28, 2007 5:12 pm Post subject: |
|
|
"But your visitor loses sizing and video settings capability"
Not really. You just need to put your own buttons, kind of "skin" on the web page, which will call Video Settings, Size and other functions.
Besides, left mose doubleclick switches to Full Screen.
Example of web-skin:
http://www.ebrazilagency.com/clients/gfnet/
Admin |
|
| Back to top |
|
 |
tommybcool
Joined: 01 Sep 2006 Posts: 141 Location: Kansas
|
Posted: Sun Jan 28, 2007 7:10 pm Post subject: |
|
|
| Admin wrote: | "But your visitor loses sizing and video settings capability"
Not really. You just need to put your own buttons, kind of "skin" on the web page, which will call Video Settings, Size and other functions.
Besides, left mose doubleclick switches to Full Screen.
Example of web-skin:
http://www.ebrazilagency.com/clients/gfnet/
Admin | So are codes like javascript:document.getElementById('player').ViewFullScreenSize();
found somewhere in the SDK? I rarely use full-screen because of the distortion choosing only to go to 200% max. And how would you do the video settings? |
|
| Back to top |
|
 |
AndrewBucklin
Joined: 28 Jan 2007 Posts: 7 Location: Yorktown, VA
|
Posted: Sun Jan 28, 2007 7:21 pm Post subject: |
|
|
| tommybcool wrote: | o.EnableContextMenu(false);
But your visitor loses sizing and video settings capability. You could get a domain from DynDNS so folks would not see your IP. You could even get a webhop from DynDNS that will convert user.example.com:5119 to user.differentexample.net and eliminate the port extension on the end. Of course people could ping your domain, but a software firewall can stop that I think. Probably a router too, haven't done it. |
Thanks! I'll look into that today... I really dont mind if the sizing and video settings options are lost, as long as the user can still double-click on the video to make it full screen... My only other thought was to see if it was possilbe to 'edit' that menu you get when you right click and remove the 'Properties' option all together, but I bet that would be a bit deeper that I want to go...
--As far as disabling the source code, I first disabled right-clicking, then I used a JavaScript thing to encode the code that points to my server's IP address, that way if they do manage to see the source code, it will be un-readable to the human eye. Not fool proof, I know, but for non-computer savy people, it works.  |
|
| Back to top |
|
 |
AndrewBucklin
Joined: 28 Jan 2007 Posts: 7 Location: Yorktown, VA
|
Posted: Sun Jan 28, 2007 9:56 pm Post subject: |
|
|
After some trial and error, I figured out that this line of code:
o.EnableContextMenu(false); // Disable the Context Menu (no right-clicking on video)
goes under function Play(player). I placed it right under the o.UseFile line, in case anyone else tries to do this in the future and doesn't know where to put it.
--Now, back to my previous suggesstion/idea... --Would it be possible to disable/enable certian items on that Context Menu? --Like remove the 'Properties' option all together, but leave all the others? I don't know how hard this would be to do, but maybe this could be a suggestion for a future release... |
|
| Back to top |
|
 |
|