diff --git a/README.md b/README.md index 6370609d29cdcd5169396d0e1f8e2022be774ed2..d0690c428f264e5c08f4d05c53751e0398b58825 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 fd5eae7ec1625dc18954cc1f73548f5363e4b902..9c2c9f18b5f8bd4498345fa18732e943b168a106 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。