Site:API
From Metrixstream
Revision as of 17:21, 10 April 2012 by MetrixAdmin (Talk | contribs)
Contents |
Forums
Add Forum
This callback allows you know when the media player is done with playback for the current media.
Parameters
- obj
- this is an object.
- mode
- the mode param has the following values: pre and post. The pre value is before the next transition begins and the post value is after the next transition begins.
- playState
- this is actual state of the playback. Possible values are pre, play, or post. The pre/post roll functionality uses pre and post values.
- playerId
- this is the HTML DOM id of the media player.
Example Usage
<script type="text/javascript">
function metrix_onComplete(obj) { alert("This player is done playing."); return true; }