Get Video Source From Url

Hello Everyone i am trying to make a html file which will take data from url and set the html 5 video src to that data.

can anyone help me in this

this is my code

    <script type="text/javascript">
 function getUrl(sParam) {
    var sPageURL = window.location.search.substring(1);
    var sURLVariables = sPageURL.split("&");
    for (var i = 0; i < sURLVariables.length; i++) {
        var sParameterName = sURLVariables[i].split("=");
        if (sParameterName[0] === sParam) {
          return sParameterName[1];
        }
      }
 }
      var urll = getUrl("Data");
  </script>

< --video width=“100%” height=“auto” controls>
<-- source src=urll type=“video/mp4”>
<–source src=“movie.ogg” type=“video/ogg”>
Your browser does not support the video tag.
</ --video>

i added <-- to make it visible to you in community

Plz help anyone if you can

Plz help anyone if you can

yes it is ,
if you are not want to help then dont help.

Did you checked that if this scripts works on your computer? Because if there is a error, browser console will say what is wrong.

i solved it bro, thanks for everyone replies.