From 72aee8c82069da4a642d1469bd50eeb5cfd2769e Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Tue, 17 Apr 2012 07:17:42 +0200 Subject: [PATCH] more readable log, start/stop button added, many body related events traced --- web/test-hs-rd.php | 8 ++++---- web/test-hs.php | 28 ++++++++++++++++++++++++++-- web/xynt/xynt-http-streaming.js | 2 ++ 3 files changed, 32 insertions(+), 6 deletions(-) diff --git a/web/test-hs-rd.php b/web/test-hs-rd.php index 27146b4..4f13f24 100644 --- a/web/test-hs-rd.php +++ b/web/test-hs-rd.php @@ -9,7 +9,7 @@ var ctx_new = ""; window.onload = function () { if (http_streaming != "ready") http_streaming.reload(); }; - + -push(\"$('cont').innerHTML = '%d';\"); -", $i, $i); +push(\"$('cont').innerHTML += '%s %d';\"); +", $i, ($i == 0 ? "
" : ""), $i); } else { // exit(); diff --git a/web/test-hs.php b/web/test-hs.php index 6804a99..3ffd263 100644 --- a/web/test-hs.php +++ b/web/test-hs.php @@ -6,16 +6,40 @@ - +
INIT
+ + STOP + + START + + diff --git a/web/xynt/xynt-http-streaming.js b/web/xynt/xynt-http-streaming.js index d671d8f..7efb2f5 100644 --- a/web/xynt/xynt-http-streaming.js +++ b/web/xynt/xynt-http-streaming.js @@ -197,6 +197,8 @@ http_streaming.prototype = { }, abort: function () { + // this.log("PATH: "+this.ifra.contentWindow.location.protocol + "://" + this.ifra.contentWindow.location.host + "/" + this.ifra.contentWindow.location.pathname); + this.gst.abort(); if (this.watchdog_hdl != null) { clearTimeout(this.watchdog_hdl); -- 2.17.1