S
S
Sergey Burduzha2019-11-05 18:03:15
css
Sergey Burduzha, 2019-11-05 18:03:15

How to remove download button from html5 video tag?

Good afternoon.
I want to put some videos on the site.
Registered the video tag:

<video preload="none" controls src="<?php echo carbon_get_the_post_meta('crb_video_link'); ?>"></video>

And in src I inserted a link to a file from a subdomain.
Only there is a problem, the video in the lower right corner has an option to download.
How to remove it from there?
5dc18f2f53840094149718.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
guruloz, 2019-11-05
@serii81

What about this?

<video preload="none" controls controlsList="nodownload">
    <source src="<?php echo carbon_get_the_post_meta('crb_video_link'); ?>" type="video/mp4">
</video>

Here you can view all available controlsList options

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question