提交 9e88c1cb 编写于 作者: G guoshuyu

fix exo2 buffering state

上级 9979ab7a
......@@ -53,7 +53,8 @@ public class DetailPlayer extends AppCompatActivity {
//String url = "http://7xjmzj.com1.z0.glb.clouddn.com/20171026175005_JObCxCE2.mp4";
String url = "http://video.7k.cn/app_video/20171202/6c8cf3ea/v.m3u8.mp4";
//String url = "http://video.7k.cn/app_video/20171202/6c8cf3ea/v.m3u8.mp4";
String url = "http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8";
//String url = "rtsp://cloud.easydarwin.org:554/stream0.sdp";
//String url = "http://s.swao.cn/o_1c4gm8o1nniu1had13bk1t0l1rq64m.mov";
//String url = "http://api.ciguang.tv/avideo/play?num=02-041-0491&type=flv&v=1&client=android";
......
......@@ -324,7 +324,7 @@ public abstract class GSYVideoView extends GSYTextureRenderView implements GSYMe
if (getGSYVideoManager().listener() != null) {
getGSYVideoManager().listener().onCompletion();
}
if(mVideoAllCallBack != null) {
if (mVideoAllCallBack != null) {
Debuger.printfLog("onStartPrepared");
mVideoAllCallBack.onStartPrepared(mOriginUrl, mTitle, this);
}
......@@ -649,7 +649,9 @@ public abstract class GSYVideoView extends GSYTextureRenderView implements GSYMe
} else if (what == MediaPlayer.MEDIA_INFO_BUFFERING_END) {
if (mBackUpPlayingBufferState != -1) {
if (mBackUpPlayingBufferState == CURRENT_STATE_PLAYING_BUFFERING_START) {
mBackUpPlayingBufferState = CURRENT_STATE_PLAYING;
}
if (mHadPlay && mCurrentState != CURRENT_STATE_PREPAREING && mCurrentState > 0)
setStateAndUi(mBackUpPlayingBufferState);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册