Module: Debug

Methods


getLogToBrowserConsole()

Use this method to get the state of logToBrowserConsole.

Source:
Returns:

The current value of logToBrowserConsole

Type
boolean

log(arguments)

This method will allow you send log messages to either the browser's console and/or dispatch an event to capture at the media player level.

Parameters:
Name Type Argument Description
arguments * <repeatable>

The message you want to log. The Arguments object is supported for this method so you can send in comma separated logging items.

Source:

setCalleeNameVisible(value)

Prepends the callee object name, and media type if available, to each log message.

Parameters:
Name Type Description
value boolean

Set to true if you want to see the callee object name and media type in each log message.

Default Value:
  • false
Source:

setLogTimestampVisible(value)

Prepends a timestamp in milliseconds to each log message.

Parameters:
Name Type Description
value boolean

Set to true if you want to see a timestamp in each log message.

Default Value:
  • false
Source:

setLogToBrowserConsole(value)

Toggles logging to the browser's javascript console. If you set to false you will still receive a log event with the same message.

Parameters:
Name Type Description
value boolean

Set to false if you want to turn off logging to the browser's console.

Default Value:
  • true
Source: