How to hide Download button in the video player in Video Gallery

Hi everyone is there a way to hide the download option (via custom css) from the video options? We are streaming the video from custom urls (non-public options). We would rather not share our videos in this way. It looks like they player is a custom one (not the one that is coming from the actual streaming source.

Hi there and welcome to the Community, @Daniel_Klinger :waving_hand:

Our devs came up with a custom script for this case (it’s already added to the Custom JS field on the Settings tab of your widget’ settings):

util.waitForElement('.es-playlist-player-view-player-wrap').then(player => {
  new MutationObserver(() => {
    const video = player.querySelector('.es-media-video-player video:not([data-processed])');
    if (!video) return;
    video.setAttribute('controlsList', 'nodownload');
    video.setAttribute('data-processed', '');
  }).observe(player, {
    childList: true,
    subtree: true
  });
});

Note: Custom JS doesn’t function in the preview mode, so you can check the result right on your website or through the Share Link

Check it out and let me know if you like the result :wink: