The player is capable of tracking basic usage statistics through a javascript API.

 The following information is made available: 

  • play / pause clicks
  • user generated seeks
  • average time spent on interactive inserts
  • total instance time for the timeline 

Calling getUsageJSON on a flash object representing an instance of CoSolvent player will return a JSON encoded string with the snapshot of data at the time of the call.

The object is formatted as follows: { 0: <play>, 1: <pause>, 2: <seek>, 3: <avg insert>, 4: <total time>} 

As well, the following javascript calls are made by the player when events occur: 

  • csp_totalTimeUpdate
  • csp_pauseClick
  • csp_playClick
  • csp_seek
  • csp_interactionTimeUpdate 

To enable this functionality, be sure to add trackUsage: true to the ui configuration object as such:

ui: { trackUsage: true }