[xiph-commits] r4083 - itext

silvia at svn.annodex.net silvia at svn.annodex.net
Mon Mar 8 19:24:58 PST 2010


Author: silvia
Date: 2010-03-08 19:24:58 -0800 (Mon, 08 Mar 2010)
New Revision: 4083

Modified:
   itext/mediafrag_multiple_servers.html
Log:
A few fixes to the XMLHTTPrequest part, but also commented it out.


Modified: itext/mediafrag_multiple_servers.html
===================================================================
--- itext/mediafrag_multiple_servers.html	2010-03-09 02:54:11 UTC (rev 4082)
+++ itext/mediafrag_multiple_servers.html	2010-03-09 03:24:58 UTC (rev 4083)
@@ -106,12 +106,12 @@
 
   function loadVideoFragment(video, range) {
     var client = new XMLHttpRequest();
-    client.open('GET', video);
+    client.open('GET', video, true);
     client.setRequestHeader('Range', range);
-    client.send();
+    client.send("");
     client.onreadystatechange = function() {
      if(this.readyState == 2) {
-      console.log(client.getAllResponseHeaders());
+      console.log(this.getAllResponseHeaders());
      }
     }
   }
@@ -129,14 +129,14 @@
     if (videooffset != 0) {
       start = videooffset.split(',')[2];
       end = videooffset.split(',')[1];
-      var range="t="+start+"-"+end;
+      var range="time:npt="+start+"-"+end;
       video[2].addEventListener("timeupdate", function() {
         if (video[2].currentTime >= end) {
           video[2].pause();
           video[2].removeEventListener("timeupdate", arguments.callee, false);
         }
       }, false);
-      loadVideoFragment(videourl, range);
+//      loadVideoFragment(videourl, range);
       video[2].currentTime = start;
     }
     // END: THIS SHOULD BE NATIVE IN BROWSER



More information about the commits mailing list