[cvs-annodex] commit (/annodex): AnnodexFirefoxExtension/trunk/Core/chrome/afeview/content/afeview.js

andre nobody at lists.annodex.net
Fri Apr 22 15:55:55 EST 2005


Update of /annodex (new revision 1286)

Modified files:
   AnnodexFirefoxExtension/trunk/Core/chrome/afeview/content/afeview.js

Log Message:
AnnodexFirefoxExtension:
 * Ensure usage of server-side seeking if any playback is done over HTTP



Modified: AnnodexFirefoxExtension/trunk/Core/chrome/afeview/content/afeview.js
===================================================================
--- AnnodexFirefoxExtension/trunk/Core/chrome/afeview/content/afeview.js	2005-04-22 05:18:35 UTC (rev 1285)
+++ AnnodexFirefoxExtension/trunk/Core/chrome/afeview/content/afeview.js	2005-04-22 05:55:52 UTC (rev 1286)
@@ -1113,16 +1113,11 @@
 
 function useServerSideSeeking (aURL)
 {
-  // Use server-side seeking if we're playing back an Annodex file over http.
+  // Use server-side seeking if we're playing back any file over http.
   // We should really be more accurate than this, but for now, it's the only
   // indicator we've got ...
   
-  return (   aURL.indexOf("http" == 0)
-          && (   aURL.indexOf(".anx") == aURL.length - 4
-              || aURL.indexOf(".axv") == aURL.length - 4
-              || aURL.indexOf(".axa") == aURL.length - 4
-             )
-         );
+  return ( aURL.indexOf("http" == 0) );
 }
 
 function createHyperlink (aHref, aAnchorText)


-- 
andre



More information about the cvs-annodex mailing list