adv.addToLog()

By defining your own wrtc.adv.addToLog() you can dump your own local variables and client status to the end of your wrtc_kit log when saving it or sending it to someone.

By default wrtc.adv.addToLog() just returns an empty string. By redefining it you can make it log your own data.

Arguments

None.

Returns

The string to be added to the end of the wrtc_kit log.

Example

To log the status of your variable foo redeclare wrtc.adv.addToLog in your code:

  wrtc.adv.addToLog = function() {
    var msg = "";
    msg += "foo:" + foo + "<br/>";
    return msg;
  }
ixnx/wrtc/js/api/wrtc/adv.addtolog.txt · Last modified: by tibor
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0