JS to track video views externally

Ccopy the script below, the Oculu our engine throws current state / event of the player. This is limited to Oculu HTML5 video Player and Oculu Flash Video player.
<script>
function im_PlayerEventListener(im_event){
/*** im_event values
** start
** pause
** play
** end
** */
}
</script>
Copy the script below, to catch the current Play Head Position, return values are (0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100)
<script>
function im_get_playHead(some_vars){
//insert your script here
 }
</script>