HTML5 script is logging - why?

4 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=""></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);

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="" xmlns:media="" rel="media:video" resource="" data=""><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="" /><a href="">Video Platform</a> <a href="">Video Management</a> <a href="">Video Solutions</a> <a href="">Video Player</a> <a rel="media:thumbnail" href=""></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: on line 66
Kaltura HTML5 Version: ( iframe ) on line 68

Which comes from: console.log(msg) in the 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 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!

Joined: 11/04/2014
Points: 56

This issue is new to me. Thank god I never met with this issue. Actually the error Html5 script logging is also found on my friends machine. I don’t think this is a serious issue. The better is to follow what the admin say.EMR