[xiph-commits] r15720 - websites/celt-codec.org/presentations

gmaxwell at svn.xiph.org gmaxwell at svn.xiph.org
Tue Feb 24 17:14:55 PST 2009


Author: gmaxwell
Date: 2009-02-24 17:14:54 -0800 (Tue, 24 Feb 2009)
New Revision: 15720

Modified:
   websites/celt-codec.org/presentations/video.js
Log:
Fix support for non-Java fallbacks.

Modified: websites/celt-codec.org/presentations/video.js
===================================================================
--- websites/celt-codec.org/presentations/video.js	2009-02-25 00:36:25 UTC (rev 15719)
+++ websites/celt-codec.org/presentations/video.js	2009-02-25 01:14:54 UTC (rev 15720)
@@ -47,6 +47,7 @@
 	} else {
 	    javaEnabled = navigator.javaEnabled();
 	}
+
 	var inlinePlayback = vlcActiveX || vlcPlugin || oggPlugin
 	    || javaEnabled;
 
@@ -153,7 +154,7 @@
     var containerdiv = document.createElement("div");
     containerdiv.setAttribute("width", width);
     containerdiv.setAttribute("height", height);
-    if (javaEnabled) {
+    if (javaEnabled=="true") {
 	if (cortadourl == '') {
 	    if (src.indexOf('/') != -1)
 		cortadourl = src.substr(0, src.lastIndexOf('/')) + '/';
@@ -205,7 +206,7 @@
 	}
 	containerdiv.appendChild(applet);
 	parent.replaceChild(containerdiv, video);
-    } else if (oggPlugin) {
+    } else if (oggPlugin=="true") {
 	var object = document.createElement("object");
 	object.setAttribute("width", width);
 	object.setAttribute("height", height);
@@ -213,7 +214,7 @@
 	object.setAttribute("type", "video/ogg");
 	containerdiv.appendChild(object);
 	parent.replaceChild(containerdiv, video);
-    } else if (vlcActiveX) {
+    } else if (vlcActiveX=="true") {
 	var span = document.createElement("span");
 	span.innerHTML =
 	    "<object classid='clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921' codebase='http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab' width='"
@@ -223,7 +224,7 @@
 	parent.replaceChild(span, video);
 	containerdiv.appendChild(span);
 	parent.replaceChild(containerdiv, video);
-    } else if (vlcPlugin) {
+    } else if (vlcPlugin=="true") {
 	var span = document.createElement("span");
 	span.innerHTML =
 	    "<object type='application/x-vlc-plugin' id='vlc_element' width='"



More information about the commits mailing list