1) First you will pass your variables to another page by get normally
<a href="/web/video-play.php?v=67452"><img src="video1.png"></a>
On the other page you will do
<script>
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
</script>
can be inside the head and soon after you get past variables like this
<script>
var video= getUrlVars()["v"];
alert(video);
</script>
in a src:
<img src='' id='minhaimg'>
<script>
$("#minhaimg").attr("src", video);
</script>
obs: this using jquery
for full video javascript
var video = document.getElementById('video');
var source = document.createElement('source');
source.setAttribute('src',video);
video.appendChild(source);
video.play();
So you only create the video tag without source none