VideoPlayerManager icon indicating copy to clipboard operation
VideoPlayerManager copied to clipboard

Could we know wen media player really started?

Open lenguyenthanh opened this issue 8 years ago • 2 comments

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.

lenguyenthanh avatar Mar 10 '16 10:03 lenguyenthanh