Im really lost on how to accomplish this, can anyone point me in the right direction or paste a snippet of code?
Currently i only have something like this:
Code: Select all
public void onEvent(MediaPlayer.Event event) {
VideoActivity player = mOwner.get();
switch(event.type) {
case MediaPlayer.Event.EndReached:
Log.d(TAG, "MediaPlayerEndReached");
player.releasePlayer();
break;
case MediaPlayer.Event.Playing:
case MediaPlayer.Event.Paused:
case MediaPlayer.Event.Stopped:
case MediaPlayer.Event.Buffering:
default:
break;
}
}