Jump to content

Play video on UniHTMLFrame


eduardosuruagy

Recommended Posts

16 hours ago, eduardosuruagy said:

Quando eu reproduzo um vídeo no UniHTMLFrame, um ícone com 3 pontos aparece e ao clicar nesse ícone, há uma opção para baixar o vídeo, como posso desabilitar essa opção?

Please provide more details. Attach a test case if possible.

Link to comment
Share on other sites

2 hours ago, eduardosuruagy said:

An example is attached

Try add controlsList="nodownload"

UniHTMLFrame1.HTML.Add(' <!DOCTYPE html> '+
                       ' <html> '+
                       ' <body> '+
                       '   <video width="'+ IntToStr(UniHTMLFrame1.Width) +'" height="'+ IntToStr(UniHTMLFrame1.Height) +'" autoplay muted loop controls controlsList="nodownload">'+
                       '   <source src="files/oceans.mp4" type="video/mp4"> '+
                       '   </video> '+
                       ' </body> '+
                       ' </html> ');

 

Link to comment
Share on other sites

8 minutes ago, Sherzod said:

Try add controlsList="nodownload"


UniHTMLFrame1.HTML.Add(' <!DOCTYPE html> '+
                       ' <html> '+
                       ' <body> '+
                       '   <video width="'+ IntToStr(UniHTMLFrame1.Width) +'" height="'+ IntToStr(UniHTMLFrame1.Height) +'" autoplay muted loop controls controlsList="nodownload">'+
                       '   <source src="files/oceans.mp4" type="video/mp4"> '+
                       '   </video> '+
                       ' </body> '+
                       ' </html> ');

 

great, it worked perfectly. Thank you very much!!

Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...