From aa572d80b5323fbba1226079dc7e33cc41fa4e31 Mon Sep 17 00:00:00 2001 From: shuyu <359369982@qq.com> Date: Thu, 23 Mar 2017 22:02:48 +0800 Subject: [PATCH] readme (2017-03-23) --- README.md | 45 +++++++++++++++++++++++++-------------------- UPDATE_VERSION.md | 29 +++++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 6370609..d0690c4 100644 --- a/README.md +++ b/README.md @@ -114,33 +114,38 @@ dependencies { ## 近期版本 -### 1.6.0 (2017-02-19) -* update ijkplayer to 0.7.7.1。 -* 增加了弹幕demo,主要演示如何快速集成弹幕功能。 -* 修改了播放时可能出现loading不消失问题。 -* 修复了全屏和退出全屏图片显示错误问题。 -* 全屏切换按键的图片资源支持自定义。 - +### 1.6.1(2017-03-23) +* setSpeed接口修改为支持播放中设置 +* 内存优化 +* update ijk to 0.7.8.1 +* 增加超时接口 GSYVideoManager ``` /** - * 设置右下角 显示切换到全屏 的按键资源 - * 必须在setUp之前设置 - * 不设置使用默认 + * 是否需要在buffer缓冲时,增加外部超时判断,目前对于刚开始超时还没效果 + * + * 超时后会走onError接口,播放器通过onPlayError回调出 + * + * 错误码为 : BUFFER_TIME_OUT_ERROR = -192 + * + * 由于onError之后执行GSYVideoPlayer的OnError,如果不想触发错误, + * 可以重载onError,在super之前拦截处理。 + * + * public void onError(int what, int extra){ + * do you want before super and return; + * super.onError(what, extra) + * } + * + * @param timeOut 超时时间,毫秒 默认8000 + * @param needTimeOutOther 是否需要延时设置,默认关闭 */ -public void setEnlargeImageRes(int mEnlargeImageRes) - - -/** - * 设置右下角 显示退出全屏 的按键资源 - * 必须在setUp之前设置 - * 不设置使用默认 - */ -public void setShrinkImageRes(int mShrinkImageRes) +public void setTimeOut(int timeOut, boolean needTimeOutOther) { + this.timeOut = timeOut; + this.needTimeOutOther = needTimeOutOther; +} ``` - ### 更多版本请查阅:[版本更新说明](https://github.com/CarGuo/GSYVideoPlayer/blob/master/UPDATE_VERSION.md) ## 混淆 diff --git a/UPDATE_VERSION.md b/UPDATE_VERSION.md index fd5eae7..9c2c9f1 100644 --- a/UPDATE_VERSION.md +++ b/UPDATE_VERSION.md @@ -1,10 +1,35 @@ ## 下方个版本说明,可以当做简单的wiki使用~,效果可参考DEMO。 -### 1.6.1(2017-03-21) +### 1.6.1(2017-03-23) * setSpeed接口修改为支持播放中设置 * 内存优化 -* 增加超时接口 * update ijk to 0.7.8.1 +* 增加超时接口 GSYVideoManager +``` +/** + * 是否需要在buffer缓冲时,增加外部超时判断,目前对于刚开始超时还没效果 + * + * 超时后会走onError接口,播放器通过onPlayError回调出 + * + * 错误码为 : BUFFER_TIME_OUT_ERROR = -192 + * + * 由于onError之后执行GSYVideoPlayer的OnError,如果不想触发错误, + * 可以重载onError,在super之前拦截处理。 + * + * public void onError(int what, int extra){ + * do you want before super and return; + * super.onError(what, extra) + * } + * + * @param timeOut 超时时间,毫秒 默认8000 + * @param needTimeOutOther 是否需要延时设置,默认关闭 + */ +public void setTimeOut(int timeOut, boolean needTimeOutOther) { + this.timeOut = timeOut; + this.needTimeOutOther = needTimeOutOther; +} + +``` ### 1.6.0 (2017-02-19) * update ijkplayer to 0.7.7.1。 -- GitLab