You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#114031 MediaBox DownLoad option

Posted in ‘Mediabox’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Thursday, 29 June 2023 10:51 BST

barryP
Just started using MediaBox to make some of our Presentations (MP4) available online.
I see that there is an option for the user to Download the video.
Can this option be removed ?
I tried to find the CSS to do this but failed.

I know that a determined user could rightclick/F12 to download the video but at least the option
would not be obvious.

Regards

Ryan
Mediabox uses the browser's internal media player for mp4 video and mp3 audio, so we are stuck with the support those browsers offer to enable or disable media player features. In Chromium browser (Chrome, Edge, Brave etc.) there is a controlslist property for the video and audio tags, which can be used to set th controls available. Firefox does not yet support this property, but it also does not display a download option in the media player controls. To set this property for MediaBox depends on how you are creating the popup. If you are doing it in HTML in the Code Editor, then you add the data-mediabox-controlslist="nodownload" attribute to the link, eg:

<a href="https://www.joomlacontenteditor.net/images/big_buck_bunny_trailer_480p.mp4" class="jcepopup" data-mediabox="1" data-mediabox-controlslist="nodownload">Big Buck Bunny</a>
If you are creating the popup using the Link dialog, then add the property as a Parameter in the Popup tab, eg: https://cdn.joomlacontenteditor.net/tmp/114031-mediabox-download-option-1.jpg If you are using the Media Manager to create the popup, then add the property as an Attribute in the Media Options tab, eg: https://cdn.joomlacontenteditor.net/tmp/114031-mediabox-download-option-2.jpg You can read more about the controlslist property here - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#controlslist

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

barryP
Excellent !
Thankyou.
I can disable rightclick.
That's all I can do to protect coursework.
Regards

Ryan
An alternative to self-hosting the video is to use a service like Vimeo or Youtube. You don't have to publish the videos publicly, but can still embed them in the site or open them in Mediabox.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

barryP
I now see in Dropbox I can share link but forbid downloading !
Thanks

Ryan
[quotePost id="114045"]Sorry to be slow to understand, but how does that prevent a bad user downloading files ?[/quotePost]

With video streaming services the video is not hosted directly on your site, and is displayed in the service's own video player via and iframe. This prevents the user from directly downloading the file (however Youtube does included a download button which you may or may not be able to remove). Vimeo includes an option to disable download in its paid plans.

Other streaming video services are available, eg: Wistia - https://wistia.com, Streamable - https://streamable.com

Also, for reference see - https://stackoverflow.com/questions/9756837/prevent-html5-video-from-being-downloaded-right-click-saved

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.