HTML5 script is logging - why?

3 replies [Last post]
Joined: 09/13/2012
Points: 13

I have an issue which i'm not able to figure out. For some reason the Kaltura HTML5 js want's to log some messages to the console, and I don't want that.

I'm including this within :

<script type="text/javascript" src="http://html5.kaltura.org/js"></script>
   
<script type="text/javascript">
  mw.setConfig("Kaltura.LeadWithHTML5", true);
  mw.setConfig("EmbedPlayer.AttributionButton", false);
  mw.setConfig("EmbedPlayer.EnableOptionsMenu", false);
  mw.setConfig("EmbedPlayer.EnableIpadNativeFullscreen", true);
  mw.setConfig("EmbedPlayer.UseFlashOnAndroid", false);
  mw.setConfig("EmbedPlayer.EnableRightClick", false);
</script>

And this is the video embed code in :

<object id="kaltura_player_1347548504" name="kaltura_player_1347548504" type="application/x-shockwave-flash" allowFullScreen="true" allowNetworking="all" allowScriptAccess="always" height="435" width="630" bgcolor="#000000" xmlns:dc="http://purl.org/dc/terms/" xmlns:media="http://search.yahoo.com/searchmonkey/media/" rel="media:video" resource="http://www.kaltura.com/index.php/kwidget/cache_st/1347548504/wid/_1117802/uiconf_id/9437111/entry_id/1_63yv93i5" data="http://www.kaltura.com/index.php/kwidget/cache_st/1347548504/wid/_1117802/uiconf_id/9437111/entry_id/1_63yv93i5"><param name="allowFullScreen" value="true" /><param name="allowNetworking" value="all" /><param name="allowScriptAccess" value="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="streamerType=rtmp&&" /><param name="movie" value="http://www.kaltura.com/index.php/kwidget/cache_st/1347548504/wid/_1117802/uiconf_id/9437111/entry_id/1_63yv93i5" /><a href="http://corp.kaltura.com/products/video-platform-features">Video Platform</a> <a href="http://corp.kaltura.com/Products/Features/Video-Management">Video Management</a> <a href="http://corp.kaltura.com/Video-Solutions">Video Solutions</a> <a href="http://corp.kaltura.com/Products/Features/Video-Player">Video Player</a> <a rel="media:thumbnail" href="http://cdnbakmi.kaltura.com/p/1117802/sp/111780200/thumbnail/entry_id/1_63yv93i5/width/120/height/90/bgcolor/000000/type/2"></a> <span property="dc:description" content=""></span><span property="media:title" content="Part1-Mysterious Disease"></span> <span property="media:width" content="630"></span><span property="media:height" content="435"></span> <span property="media:type" content="application/x-shockwave-flash"></span> </object>

So... In the log I get:
Kaltura HTML5 Version: 1.6.12.21c on line 66
Kaltura HTML5 Version: 1.6.12.21c ( iframe ) on line 68

Which comes from: console.log(msg) in the http://html5.kaltura.org/js file.

Can anyone help clarify this?

I'm sorry - I can't show you the staging site.

- Jakob

Joined: 02/22/2009
Points: 76

Often the most important piece of info is the version of the library. So we log that to the console by default.

You can overwrite by setting:
window.console.log = function(){};

That may not help with the iframe... You could also copy the mwEmbedLoader locally ( i.e what http://html5.kaltura.org/js server up ) and just remove the console log, and or copy it locally if your system is running php and again modify it to not log the version.

Joined: 09/13/2012
Points: 13

Thanks! I'll try including the mwEmbedLoader myself.

Joined: 10/10/2012
Points: 2

Too bad I want to use this as my essay topic but these codes are really confusing! This post will be much better if you took some time to explain this matter!