Monday, August 20, 2007

Capture the end of audio play - onPlayStatus

Few days back i was working with playing FLV through RED5 server. I got everything right except for capturing the end of audio play. I was trying to capture the end of play through "Netsream.Play.Stop" event. But this event got trigerred during the middle of the play. So i was looking for other options for capturing the STOP event.


I came through a event called onPlayStatus which gets trigerred after the audio plays completely. The code is


ns.onPlayStatus = function(info:Object)
{
trace("End of audio play");
}

For more information about this event check here

No comments: