octoshape.osa2.android.listeners
Interface MediaPlayerListener


public interface MediaPlayerListener


Method Summary
 void onMediaPlaybackCompleted()
          MUST be called when the media player reports that play-back has completed.
 void onMediaPlaybackStarted()
          MUST be called when the media player reports that play-back has started.
 

Method Detail

onMediaPlaybackStarted

void onMediaPlaybackStarted()
MUST be called when the media player reports that play-back has started.

This could be measured as when the initial filling of the player buffer finished. When using the native android mediaplayer use the MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START for API level 17 and higher and the MediaPlayer.OnPreparedListener for a lower API level.

Note that a time stamp is taken as this method is called, so it is important that the method is called immediately after the media player reported the event.


onMediaPlaybackCompleted

void onMediaPlaybackCompleted()
MUST be called when the media player reports that play-back has completed.

Should be called when when the Mediaplayer.OnCompleteListener call-back is received.

Note that a time stamp is taken as this method is called, so it is important that the method is called immediately after the media player reported the event.