Author: andre
Date: 2010-06-30 14:15:01 +0200 (Wed, 30 Jun 2010)
New Revision: 42759

Modified:
   openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
Log:
hide the html5 browser warning when we've found a method to play this in MSIE


Modified: openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
===================================================================
--- openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js     
2010-06-30 12:05:19 UTC (rev 42758)
+++ openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js     
2010-06-30 12:15:01 UTC (rev 42759)
@@ -64,6 +64,10 @@
                 $(div).find('div.player').append(player.player);
             }
             
+            if ($.browser.msie && (player.myname.indexOf('cortado') > -1 || 
player.myname == 'flowplayer')) {
+                $(div).nextAll('p.oiplayer-warn').first().hide();
+            }
+            
             $(div).width(player.width).height(player.height);
             
             var poster = createPoster(div, player);
@@ -677,7 +681,9 @@
             function(ev) {
                 if (!isNaN(self.player.duration) && self.player.duration > 0 
&& self.player.duration != 'Infinity') {
                     self.duration = self.player.duration;
-                    $.oiplayer.msg(self, "set duration: " + self.duration);
+                    if (config.log == 'info') {
+                        $.oiplayer.msg(self, "set duration: " + self.duration);
+                    }
                     $.oiplayer.slider(self);
                 }
             }, false);

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to