How can I make a video player without including the video link?

Asked

Viewed 21 times

1

Let’s imagine that I want to create a video player for my website. I would use the following html code

<video controls width="250">
    <source src="/media/videos/myvid.mp4"
            type="video/mp4">
    Sorry, your browser doesn't support embedded videos.
</video>

But I didn’t want a person who went to examine the source code to get the link to the video easily. What would be the most viable option to hide the source link? (It does not have to be a solution that only uses HTML5 base, can use React, Node or even PHP, among others)

  • Create a page with the video and embed the video by an iframe on the 'official' page, even so I don’t know if it’s right, it’s just a test for you to try

  • @hugocsl I think this would work, but the person could not just access the page of the iframe and there get the link of the video anyway?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.