1 function http_streaming(doc)
4 this.keepalive_old = -1;
5 this.keepalive_new = -1;
6 this.keepalives_equal = 0;
7 this.ifra = doc.createElement("iframe");
8 this.ifra.style.visibility = "hidden";
9 doc.body.appendChild(this.ifra);
10 // this.ifra.contentWindow.onload = function () {
11 // this.ifra.contentWindow.location.href = 'winstream_rdxxx.php';
16 http_streaming.prototype = {
24 start: function(page) {
25 this.ifra.contentWindow.location.href = page;
28 watchdog: function () {
29 /* +this.keepalives_equal */
30 console.log("watchdog ");
31 if (this.keepalive_old == this.keepalive_new) {
32 this.keepalives_equal++;
35 this.keepalives_equal = 0;
38 if (this.keepalives_equal > this.keepalives_eq_max) {
39 console.log("MAX ACHIEVED "+this.keepalives_equal);
42 setTimeout(function(obj) { obj.watchdog() }, 2000, this);
46 keepalive: function () {