Hello.
How can I remove the download link of the video player?
X3 Photo Gallery Support Forums
This is actually the browser and not X3. However, I see from this post that one can use a new attribute controlsList="nodownload", although I am not sure it works in all browsers.masquefotos wrote:How can I remove the download link of the video player?
<video controls controlsList="nodownload">
<source src="file.mp4" type="video/mp4">
</video>
function x3_load(){
$('body').on('contextmenu', 'video', function(e){
return false;
});
}
Yes, sorry, this feature is still pending. In X3.24.3 we added block download for right-click on video, but we did not include a fix to remove the native html5 player download button for the video. To be honest, I forgot :tired_face: :zipper_mouth: You can hack fix it:masquefotos wrote:Thanks Karl for the new update
But the download button keeps showing up
Captura de pantalla 2018-01-14 18.11.04.png
echo "\t<video width=\"100%\" preload=\"metadata\" class=\"x3-style-frame\" controls>
echo "\t<video width=\"100%\" preload=\"metadata\" class=\"x3-style-frame\" controls controlsList="nodownload">
echo "\t<video width=\"100%\" preload=\"metadata\" class=\"x3-style-frame\" controls controlsList=\"nodownload\">
Did you edit the code as in my last reply, and then click SAVE in settings to refresh page cache? Do you have a link to one of your pages with video?masquefotos wrote:I do not know what I'm doing wrong but it can be downloaded again
I will wait for the new update
Gracias Karl
I thought you meant for the GALLERY section, but these videos are custom embedded in your CONTENT section. If you are embedding videos with the <video> tag in your custom content, you will also need to include the controlsList="nodownload" attribute inside the video tag:masquefotos wrote:https://www.jcarloscruz.com/naturaleza/ ... es/videos/
<video width="100%" preload="metadata" controls controlsList="nodownload">