The callback object can be structured as follows:
{ onPlayed: function( ) { ... }, onRecorded: function( payload ) { ... }, onStopped: function( payload ) { ... }, onPaused: function( payload ) { ... }, onFailure: function( error ) { ... } }
For details on individual methods, refer to the addListener article.