LO HTML - Embed video without download option

Anything about what happens on the user and teacher side
Post Reply
gaya3shankar
Newbie
Posts: 2
Joined: Sun Feb 26, 2023 1:54 pm

LO HTML - Embed video without download option

Post by gaya3shankar »

Hai

I have just started using this Forma LMS. While creating a HTML Page LO , i wanted to add a video element.

I saw in the embed code , it used "video" tag.
<video controls="controls" width="1110" height="740">
<source src="../appCore/../files/common/users/11839_35_1677414129_Making_1.mp4" type="video/mp4" /></video>


When I want to add controlsList with NO DOWNLOAD option , so not to allow the user to download the video, by doing this, and pressing Save.
<video width="600" height="350" controls controlsList="nodownload"> ...............

Its not saving the code. When I open the embed tab again, the nodownload option is not shown & the video still has the Download button.

What Iam missing ?
How to solve this issue, to disable the download button ??
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: LO HTML - Embed video without download option

Post by alfa24 »

Some tags and attributes are automatically stripped by tinymce. You can find topics about how to whitelist them.
Per supporto GRATUITO contattatemi in privato qui
gaya3shankar
Newbie
Posts: 2
Joined: Sun Feb 26, 2023 1:54 pm

Re: LO HTML - Embed video without download option

Post by gaya3shankar »

Could'nt find any topics to whitelist the tags , so tinymce does not strip them. Any more suggestions would be useful.
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: LO HTML - Embed video without download option

Post by alfa24 »

There's no discussion about WHETHER the attribute/tag is being stripped or not, because it's absolutely clear that it is.
The discussion is WHERE, or BY WHAT component.
It can be tinymce (see https://www.tiny.cloud/docs-3x/referenc ... _elements/ and https://www.tiny.cloud/docs/configure/c ... filtering/).
It can be filter_input library of FormaLMS (HTMLPurifier, see http://htmlpurifier.org/live/configdoc/ ... Attributes).

But you have to deeply change the code.
Per supporto GRATUITO contattatemi in privato qui
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: LO HTML - Embed video without download option

Post by alfa24 »

Per supporto GRATUITO contattatemi in privato qui
Post Reply