Page 1 of 1
hyperlink for intern file.
Posted: Fri Oct 04, 2019 1:58 pm
by Rob532
Hello,
I have made a hyperlink to a MP4 file. Works great.
But I see that there is a possibility to download that file. And that is not what I want.
Only viewing. How can I do that?
Thanks
Regards
Rob
Re: hyperlink for intern file.
Posted: Fri Oct 04, 2019 2:11 pm
by Pablo
You cannot prevent the file from being downloaded.
In order to view the video, it must first be downloaded to the user's computer.
Re: hyperlink for intern file.
Posted: Fri Oct 04, 2019 8:18 pm
by alan_sh
You could create a free account on Youtube, upload it there and then hyperlink to that. There are still ways of downloading it, but it's much harder.
Alan
Re: hyperlink for intern file.
Posted: Fri Oct 04, 2019 10:35 pm
by Rob532
OK thank you very much for your advise
Have a nice weekend
Re: hyperlink for intern file.
Posted: Fri Oct 04, 2019 10:48 pm
by BaconFries
If using the HTML5 video object to playback the MP4 then it is possible to disable the download button so not to allow the download. It is still possible to download from YouTube if the user/visitor has a premium account or they use readily available apps/apks on mobile devices or certain programs for desktop so it not as hsrd as it may seem.
I am not at my PC but will try and post a way for you to add that should hide the download button. Please note most methods arnt guaranteed as it is still possible to grab tje files from the browser's cache if the end user knows how.
Re: hyperlink for intern file.
Posted: Sun Oct 06, 2019 1:30 pm
by BaconFries
If using the HTML5 video object then insert the code below in Page HTML between <head></head>tags*
Code: Select all
<style>
video::-internal-media-controls-download-button
{
display:none;
}
video::-webkit-media-controls-enclosure
{
overflow:hidden;
}
video::-webkit-media-controls-panel
{
width: calc(100% + 30px);
}
</style>