VideoPlayerManager
VideoPlayerManager copied to clipboard
Could we know wen media player really started?
We now have this callback for MediaPlayer state:
public interface MainThreadMediaPlayerListener {
void onVideoSizeChangedMainThread(int width, int height);
void onVideoPreparedMainThread();
void onVideoCompletionMainThread();
void onErrorMainThread(int what, int extra);
void onBufferingUpdateMainThread(int percent);
void onVideoStoppedMainThread();
}
But we don't really know when the video is really started. It may load a video over the air so the time to buffer data is a little long.
It's good if we know when MediaPlayer start playing the video, we can make some animation in between preparing and playing.