how to show Download icon in videojs

how to show Download icon in videojs

by sadaf sadafian -
Number of replies: 2
hi

my moodle version: moodle 3.4

i want show download icon in the video.js player.how can i do that?

i find this github but i don't understand how to implement that in the moodle.

please help me about show download icon in player or other solution.

thank you


Average of ratings: -
In reply to sadaf sadafian

Re: how to show Download icon in videojs

by Colin Fraser -
Picture of Documentation writers Picture of Testers

This is not a specific Moodle issue, Videojs does not have a native download button I understand. 

Having said that, you can add any code, say the code for that button, into Site Admin > Appearance > Additional HTML. Add it for all pages so if a videojs is used in that page, the download button should appear. Suggest you start at the Video.js player guides for help.

Average of ratings: Useful (2)
In reply to sadaf sadafian

Re: how to show Download icon in videojs

by Joost Elshoff -
Picture of Particularly helpful Moodlers Picture of Testers

Hi Sadaf,

I checked this in our Moodle 3.3 and as far as I can see, the VideoJS player as it works in Moodle already creates a download link in the controls. This works for Chrome browser and I'm sure this also works in other up-to-date browsers.

If you would like to disable the download button, use the following code in the video tag:

<video controls controlsList="nodownload">...</video>