From f204bcec7746f916c356f31dbe814a865c37dd0d Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 18 Apr 2012 08:22:09 +0200 Subject: [PATCH] add session management and step passed to the streamer --- web/test-commons.php | 73 ++++++++++++++++++++++++++++ web/test-hs-rd.php | 13 +++-- web/test-hs.php | 17 +++++-- web/xynt/xynt-http-streaming-ifra.js | 2 + web/xynt/xynt-http-streaming.js | 9 ++-- 5 files changed, 102 insertions(+), 12 deletions(-) create mode 100644 web/test-commons.php diff --git a/web/test-commons.php b/web/test-commons.php new file mode 100644 index 0000000..7cb325a --- /dev/null +++ b/web/test-commons.php @@ -0,0 +1,73 @@ + + + + + + + +
+ + + \ No newline at end of file diff --git a/web/test-hs-rd.php b/web/test-hs-rd.php index 4f13f24..d9a0867 100644 --- a/web/test-hs-rd.php +++ b/web/test-hs-rd.php @@ -4,7 +4,6 @@ @@ -20,24 +19,28 @@ function mop_flush() function main() { + GLOBAL $st; + $s = ""; for ($i = 0 ; $i < 4096 ; $i++) { $s .= rand(65,90); } - for ($i = 0 ; $i < 15 ; $i++) { + + $to = rand(10,20); + for ($first = true, $i = $st+1 ; $i < $st+$to ; $i++, $first = false) { // if ($i == 0) // sleep(1); if ($i != 8 || true) { printf("", $i, ($i == 0 ? "
" : ""), $i); +push(\"$('cont').innerHTML += '%s %d'; gst.st = %d;\"); +", $i, ($first ? "
" : ""), $i, $i); } else { // exit(); // sleep(30); } - if ($i == 0) + if ($first) printf("", $s); mop_flush(); usleep(1000000); diff --git a/web/test-hs.php b/web/test-hs.php index 3ffd263..c09c75c 100644 --- a/web/test-hs.php +++ b/web/test-hs.php @@ -4,14 +4,25 @@