|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
void onMediaPlaybackStarted()
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.
void onMediaPlaybackCompleted()
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |