提交 88a70320 编写于 作者: S shuyu

1.4.1 readme

上级 0006e615
......@@ -1182,7 +1182,11 @@ public abstract class GSYVideoPlayer extends GSYBaseVideoPlayer implements View.
* 再打开已经缓存的本地文件,网络速度才会回0.因为是播放本地文件了
*/
public long getNetSpeed() {
return GSYVideoManager.instance().getMediaPlayer().getTcpSpeed();
if (GSYVideoManager.instance().getMediaPlayer() != null) {
return GSYVideoManager.instance().getMediaPlayer().getTcpSpeed();
} else {
return -1;
}
}
......@@ -1192,7 +1196,7 @@ public abstract class GSYVideoPlayer extends GSYBaseVideoPlayer implements View.
* 再打开已经缓存的本地文件,网络速度才会回0.因为是播放本地文件了
*/
public String getNetSpeedText() {
long speed = GSYVideoManager.instance().getMediaPlayer().getTcpSpeed();
long speed = getNetSpeed();
return getTextSpeed(speed);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册