Skip to content

Commit

Permalink
1、升级版本
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyJingFish committed Jul 10, 2023
1 parent d0533a3 commit c6c0137
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 44 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ allprojects {

```gradle
//OpenImageFullLib 是完整版,如果您不想自定义图片引擎和视频播放器引擎可直接引用以下库
implementation 'io.github.FlyJingFish.OpenImage:OpenImageFullLib:2.0.5'
implementation 'io.github.FlyJingFish.OpenImage:OpenImageFullLib:2.0.6'
```
#### B、引入只带有图片引擎的版本(只支持查看图片)

请注意如果使用以下导入方式,如果你的项目组存在[Glide](https://github.com/bumptech/glide)请升级至 **4.12.0** 或者更高的版本,否则会冲突

```gradle
//OpenImageGlideLib 引入Glide(4.12.0)图片引擎,没有引入视频播放器;如需定制视频播放功能,详细看Wiki文档,如果不想定制可直接使用上边的库
implementation 'io.github.FlyJingFish.OpenImage:OpenImageGlideLib:2.0.5'
implementation 'io.github.FlyJingFish.OpenImage:OpenImageGlideLib:2.0.6'
```

#### C、引入基础版本(不可以直接查看图片和视频,完全需要自定义)
Expand All @@ -102,7 +102,7 @@ implementation 'io.github.FlyJingFish.OpenImage:OpenImageGlideLib:2.0.5'
```gradle
//OpenImageLib 是基础库,没有引入图片引擎和视频播放器
//至少需要实现BigImageHelper来定制您的图片引擎,如需定制视频播放功能,详细看Wiki文档
implementation 'io.github.FlyJingFish.OpenImage:OpenImageLib:2.0.5'
implementation 'io.github.FlyJingFish.OpenImage:OpenImageLib:2.0.6'
```

Expand Down
Binary file modified apk/release/app-release.apk
Binary file not shown.
81 changes: 41 additions & 40 deletions app/src/main/assets/video_data.json
Original file line number Diff line number Diff line change
@@ -1,74 +1,75 @@
[
{
"type": 2,
"coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/B_7nhnsVPzjQi5n3caAaKAZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
"videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/ac-F2opQhKRy9RPpwfn9RQZYuSrjYxOcnYepCOcSx7o="
"coverUrl": "https://pics2.baidu.com/feed/faf2b2119313b07e29b7e99496f2cc2696dd8ccb.jpeg?token=225fa7d0ce02742dad2e1edfc3d48703&s=215079844C12BFE510A440B403008092",
"videoUrl": "https://s1.zoubuting.com/20210829/XChupagk/index.m3u8"
},
{
"type": 2,
"coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/LN-IxWwNi9zGkcUUUfZGTA==/sKG0xufBBcrsMNVJp5dHbAZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
"videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/LN-IxWwNi9zGkcUUUfZGTA==/o2wqSodFOkVw5Zi6KqJ4wpHs7kdODSM_dqCYhFG-zk4="
"coverUrl": "https://pics2.baidu.com/feed/faf2b2119313b07e29b7e99496f2cc2696dd8ccb.jpeg?token=225fa7d0ce02742dad2e1edfc3d48703&s=215079844C12BFE510A440B403008092",
"videoUrl": "https://s1.zoubuting.com/20210829/XChupagk/index.m3u8"
},
{
"type": 2,
"coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/xTNKpeyzjVAPXVX2oGSf3w==/KOyl3wrkwj0bF62BSM85UQZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
"videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/xTNKpeyzjVAPXVX2oGSf3w==/_Bc0K3ocuEHHAe-e0Z68v5Hs7kdODSM_dqCYhFG-zk4="
"coverUrl": "https://pics2.baidu.com/feed/faf2b2119313b07e29b7e99496f2cc2696dd8ccb.jpeg?token=225fa7d0ce02742dad2e1edfc3d48703&s=215079844C12BFE510A440B403008092",
"videoUrl": "https://s1.zoubuting.com/20210829/XChupagk/index.m3u8"
},
{
"type": 2,
"coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/wrEHAfS9a81K6ljm5cEPpw==/_MZTWF79c84o-RBs-74uZQZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
"videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/wrEHAfS9a81K6ljm5cEPpw==/lHpl1LreqHHi30db98Tcs5Hs7kdODSM_dqCYhFG-zk4="
"coverUrl": "https://pics2.baidu.com/feed/faf2b2119313b07e29b7e99496f2cc2696dd8ccb.jpeg?token=225fa7d0ce02742dad2e1edfc3d48703&s=215079844C12BFE510A440B403008092",
"videoUrl": "https://s1.zoubuting.com/20210829/XChupagk/index.m3u8"
},
{
"type": 2,
"coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/eWsRGjLJWSHLEqH2y3gpDg==/gbNzNZCbOf8z8xpbryduRAZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
"videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/eWsRGjLJWSHLEqH2y3gpDg==/UnJOo5lBREvc5XDQ0nsWjJHs7kdODSM_dqCYhFG-zk4="
},
{
"type": 2,
"coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/xu6A4cyQbjQ_-f74YFWq_gZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
"videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/-cJVwgeMXfz1TNUrXYKtLJHs7kdODSM_dqCYhFG-zk4="
},
{
"type": 2,
"coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/yahhE7w8Nl9qV-ibJmm1KA==/HgbKgZu7sxvf9oxzt03vkQZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
"videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/yahhE7w8Nl9qV-ibJmm1KA==/NmDoKvrs3Tvo9_QYBDPRvAZYuSrjYxOcnYepCOcSx7o="
},
{
"type": 2,
"coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/xTNKpeyzjVAPXVX2oGSf3w==/NqxctUGSAbOVC4O3NteEMwZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
"videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/xTNKpeyzjVAPXVX2oGSf3w==/afnP_ANuQIk9LOTTCZcolpHs7kdODSM_dqCYhFG-zk4="
},
{
"type": 2,
"coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/FUUS9TYGXRBzIdCwV-RUUQZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
"videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/fIfVJBsOJBbzUDwEjdRoJwZYuSrjYxOcnYepCOcSx7o="
"coverUrl": "https://pics2.baidu.com/feed/faf2b2119313b07e29b7e99496f2cc2696dd8ccb.jpeg?token=225fa7d0ce02742dad2e1edfc3d48703&s=215079844C12BFE510A440B403008092",
"videoUrl": "https://s1.zoubuting.com/20210829/XChupagk/index.m3u8"
}
]
//
//[
// {
// "type": 2,
// "coverUrl": "https://pics2.baidu.com/feed/faf2b2119313b07e29b7e99496f2cc2696dd8ccb.jpeg?token=225fa7d0ce02742dad2e1edfc3d48703&s=215079844C12BFE510A440B403008092",
// "videoUrl": "https://s1.zoubuting.com/20210829/XChupagk/index.m3u8"
// "coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/B_7nhnsVPzjQi5n3caAaKAZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
// "videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/ac-F2opQhKRy9RPpwfn9RQZYuSrjYxOcnYepCOcSx7o="
// },
// {
// "type": 2,
// "coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/LN-IxWwNi9zGkcUUUfZGTA==/sKG0xufBBcrsMNVJp5dHbAZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
// "videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/LN-IxWwNi9zGkcUUUfZGTA==/o2wqSodFOkVw5Zi6KqJ4wpHs7kdODSM_dqCYhFG-zk4="
// },
// {
// "type": 2,
// "coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/xTNKpeyzjVAPXVX2oGSf3w==/KOyl3wrkwj0bF62BSM85UQZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
// "videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/xTNKpeyzjVAPXVX2oGSf3w==/_Bc0K3ocuEHHAe-e0Z68v5Hs7kdODSM_dqCYhFG-zk4="
// },
// {
// "type": 2,
// "coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/wrEHAfS9a81K6ljm5cEPpw==/_MZTWF79c84o-RBs-74uZQZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
// "videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/wrEHAfS9a81K6ljm5cEPpw==/lHpl1LreqHHi30db98Tcs5Hs7kdODSM_dqCYhFG-zk4="
// },
// {
// "type": 2,
// "coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/eWsRGjLJWSHLEqH2y3gpDg==/gbNzNZCbOf8z8xpbryduRAZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
// "videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/eWsRGjLJWSHLEqH2y3gpDg==/UnJOo5lBREvc5XDQ0nsWjJHs7kdODSM_dqCYhFG-zk4="
// },
// {
// "type": 2,
// "coverUrl": "https://pics2.baidu.com/feed/faf2b2119313b07e29b7e99496f2cc2696dd8ccb.jpeg?token=225fa7d0ce02742dad2e1edfc3d48703&s=215079844C12BFE510A440B403008092",
// "videoUrl": "https://s1.zoubuting.com/20210829/XChupagk/index.m3u8"
// "coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/xu6A4cyQbjQ_-f74YFWq_gZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
// "videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/-cJVwgeMXfz1TNUrXYKtLJHs7kdODSM_dqCYhFG-zk4="
// },
// {
// "type": 2,
// "coverUrl": "https://pics2.baidu.com/feed/faf2b2119313b07e29b7e99496f2cc2696dd8ccb.jpeg?token=225fa7d0ce02742dad2e1edfc3d48703&s=215079844C12BFE510A440B403008092",
// "videoUrl": "https://s1.zoubuting.com/20210829/XChupagk/index.m3u8"
// "coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/yahhE7w8Nl9qV-ibJmm1KA==/HgbKgZu7sxvf9oxzt03vkQZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
// "videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/yahhE7w8Nl9qV-ibJmm1KA==/NmDoKvrs3Tvo9_QYBDPRvAZYuSrjYxOcnYepCOcSx7o="
// },
// {
// "type": 2,
// "coverUrl": "https://pics2.baidu.com/feed/faf2b2119313b07e29b7e99496f2cc2696dd8ccb.jpeg?token=225fa7d0ce02742dad2e1edfc3d48703&s=215079844C12BFE510A440B403008092",
// "videoUrl": "https://s1.zoubuting.com/20210829/XChupagk/index.m3u8"
// "coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/xTNKpeyzjVAPXVX2oGSf3w==/NqxctUGSAbOVC4O3NteEMwZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
// "videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/xTNKpeyzjVAPXVX2oGSf3w==/afnP_ANuQIk9LOTTCZcolpHs7kdODSM_dqCYhFG-zk4="
// },
// {
// "type": 2,
// "coverUrl": "https://pics2.baidu.com/feed/faf2b2119313b07e29b7e99496f2cc2696dd8ccb.jpeg?token=225fa7d0ce02742dad2e1edfc3d48703&s=215079844C12BFE510A440B403008092",
// "videoUrl": "https://s1.zoubuting.com/20210829/XChupagk/index.m3u8"
// "coverUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/FUUS9TYGXRBzIdCwV-RUUQZYuSrjYxOcnYepCOcSx7o=?x-oss-process=image/resize,w_600/quality,Q_60",
// "videoUrl": "https://cdn-social.woolookme.com/xYcnjGgJsRM7VJ1NBS8Ijg==/vMsBNI0ymRsHwfr4V-6Muw==/fIfVJBsOJBbzUDwEjdRoJwZYuSrjYxOcnYepCOcSx7o="
// }
//]
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android.injected.testOnly=false

PROJ_GROUP=io.github.FlyJingFish.OpenImage
PROJ_BASENAME=OpenImage
PROJ_VERSION=2.0.5
PROJ_VERSION=2.0.6
PROJ_WEBSITEURL=https://github.com/FlyJingFish/OpenImage
PROJ_VCSURL=https://github.com/FlyJingFish/OpenImage.git
PROJ_DESCRIPTION=Your own low-intrusive large image viewer, high imitation WeChat perfect transition animation, supports custom video players, and can also customize the kernel for loading pictures, such as Glide, Picasso or others
Expand Down
14 changes: 14 additions & 0 deletions update_record.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# OpenImage 更新日志

## 2.0.6

1、修复设置预加载后视频播放不正常的bug

2、新增 OpenImageCoverVideoPlayer ,简化播放器设置封面

3、优化播放器播放时隐藏封面的逻辑

4、优化加载和下载原图或视频的过程,防止内存泄漏

5、修改加载点击的图片逻辑,防止因为加载更多数据导致白白被加载

6、记录播放位置,切换回来可以继续播放

## 2.0.5

1、[修复传入ImageView的list 后关闭页面崩溃的bug](https://github.com/FlyJingFish/OpenImage/issues/11)
Expand Down

0 comments on commit c6c0137

Please sign in to comment.