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