TWebMultimediaPlayer oncontextmenu="return false;"

Hi,

How to assign oncontextmenu="return false;" for TWebMultimediaPlayer to disable context menu ?
I need to "secure" videos so that those cannot be saved directly from player.

Thanks for help.

Quick solution, add the code:

WebMultimediaPlayer1.ElementHandle['oncontextmenu'] := 'return false';

We'll look if we can add a property to control this

Hi
Thanks about advice.
It works fine, but I still have another problem.
How to disable download under controls as setting controlslist:nodownload;

Thanks for help.

I'm confused, what exactly you mean with "download under controls as setting controlslist:nodownload;" ?

Hi I mean that download.
In html it can be disabled with controlslist:nodownload, but how can I do it TWebMultimediaPlayer ?

try
WebMultimediaPlayer1.ElementHandle.style.setProperty('controlslist','nodownload');

Hi,

it's not working, but it helped me to find the answer.
It can be done with
WebMultimediaPlayer1.ElementHandle.setAttribute('controlslist','nodownload');

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.