I think it's not possible to make the video URL not appear in the source code when the element is previewed, but you can always overshadow the code making it harder to read by using tools like < Source Code Encrypter , etc., and so on.
A normal code would be:
<video width="400" controls>
<source src="http://www.w3schools.com/html/mov_bbb.mp4"type="video/mp4">
<source src="http://www.w3schools.com/html/mov_bbb.ogg"type="video/ogg">
Your browser does not support HTML5 video.
</video>
It will look like this:
<script>
<!--
document.write(unescape("%3Cvideo%20width%3D%22400%22%20controls%3E%0A%20%20%3Csource%20src%3D%22http%3A//www.w3schools.com/html/mov_bbb.mp4%22%20type%3D%22video/mp4%22%3E%0A%20%20%3Csource%20src%3D%22http%3A//www.w3schools.com/html/mov_bbb.ogg%22%20type%3D%22video/ogg%22%3E%0A%20%20Your%20browser%20does%20not%20support%20HTML5%20video.%0A%3C/video%3E"));
//-->
</script>
However as you can see, if you notice well you can still see the source / URL of the video but you can make things even more difficult, for example using URL shortening services like goo.gl
or bit.ly
so that the URL goes unnoticed in the middle of all this code or create a URL just for video hosting that is not so obvious, as for example Twitter uses t.co
, if you use a URL of the same style it will not call so much attention when encrypted along with the rest of the code.
Domain example: http://0.me
which will be - 0.me/meuVideo.mp4
or 0.me/g16dfs.mp4
.
document.write(unescape("%3Cvideo%20width%3D%22400%22%20controls%3E%0A%20%20%3Csource%20src%3D%22http%3A//0.me/g16dfs.mp4%22%20type%3D%22video/mp4%22%3E%0A%20%20%3Csource%20src%3D%22http%3A//0.me/g16dfs.mp4%22%20type%3D%22video/ogg%22%3E%0A%20%20Your%20browser%20does%20not%20support%20HTML5%20video.%0A%3C/video%3E"));
Or you can increase the amount of code to be encrypted to make it difficult to read. However someone can always reach out and decrypt the code using developer tools. So this will only be more effective for those who do not realize much of code or who are beginners in the area of web development.