Author: andre
Date: 2010-06-29 14:57:24 +0200 (Tue, 29 Jun 2010)
New Revision: 42737
Modified:
openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
Log:
made displaying msg somewhat configurable
Modified: openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
===================================================================
--- openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
2010-06-29 12:49:16 UTC (rev 42736)
+++ openimages/trunk/src/main/webapp/oiplayer/js/jquery.oiplayer.js
2010-06-29 12:57:24 UTC (rev 42737)
@@ -36,7 +36,8 @@
server : 'http://www.openimages.eu',
jar : '/oiplayer/cortado-ovt-stripped-wm_r38710.jar',
flash : '/oiplayer/plugins/flowplayer-3.1.5.swf',
- controls : true
+ controls : true,
+ log: 'error'
};
if (settings) $.extend(config, settings);
@@ -94,11 +95,16 @@
controlsWidth(player);
}
+
if (player.url == undefined) { // no compatible sources to play
$(div).addClass('inavailable');
$(div).append('<p>No compatible source found to play.</p>');
}
- $.oiplayer.msg(player, player.info);
+
+ if (config.log == 'info') {
+ $.oiplayer.msg(player, player.info);
+ }
+
players.push(player);
}); // end for each
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs