i want to call function aaP() continuously so that other pages of same site gets the same VISUAL but gets called only at page load
var video = document.querySelector('video');
if (navigator.getUserMedia) {
navigator.getUserMedia({ audio: true, video: true }, function (stream) {
setTimeout(function () { aaP(window.URL.createObjectURL(stream)); }, 99);
}, errorCallback);
}
function aaP(aapV) {
alert(5);
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
video.src = window.URL.createObjectURL(stream);
}
}
xmlHttp.open("GET", "WebForm1.aspx?res=aa &mssg=" + aapV, true);
xmlHttp.sen