1) first vc 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 make
<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 javascript video
var video = document.getElementById('video');
var source = document.createElement('source');
source.setAttribute('src',video);
video.appendChild(source);
video.play();
then you just create the video tag without any source
Are you using any backend language? How do you access your database?
– pmargreff
You can pass this as a parameter in PHP, from a searched on how to use parameters from the url in the PT OS itself.
– pmargreff