You are viewing limited content. For full access, please sign in.

Question

Question

Remove download button in WebLink HTML Player

asked on May 20, 2019

Hello, 

We are working with a user that has a question to see if it is possible to remove the download button from the HTML Player that is embedded in Weblink. See screenshot below.

Essentially they want to post videos to their public portal, but do not want users to download the video, just view the video.

Is this possible?

2019-05-20_16-27-35.jpg
0 0

Replies

replied on May 21, 2019 Show version history

You'll need to make a change to the Browse.aspx file that is in the directory that hosts the instance of WebLink. It'll be something like: C:\inetpub\wwwroot\weblink

Right before the closing body tag, add the following:

<!-- Start Custom script -->
<script>
    $(document).ready(function () {
        $("#media-download").hide();
    });
</script>
<!-- End Custom Script -->

The button will be hidden, but will remain in the DOM. Theoretically, someone who was savvy could show the button, however it might break the Angular app if you outright remove it from the DOM.

Maybe somebody more knowledgeable can comment.

1 0
replied on May 21, 2019

Devin, thanks for the response.  I tried out your code and it didn't work right away. I did some Googling to find other examples of similar code and found that if I put a period (.) in place of the hash (#) symbol, then it worked.  

$(".media-download").hide();

Thanks again!

0 0
replied on May 22, 2019

That should work fine since the button in question has both an id of "media-download" and a class of "media-download". It's odd that it didn't work for you by specifying the id. We're on 10.4.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.