Skip to content

Commit

Permalink
Merge branch 'release/v7.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
lipangit committed Mar 15, 2020
2 parents e45a809 + 3befd3f commit 31565d7
Show file tree
Hide file tree
Showing 61 changed files with 1,055 additions and 209 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--
<p align="center">
<a href="http://developer.android.com/index.html"><img src="https://img.shields.io/badge/platform-android-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Ccn.jzvd%7Cjiaozivideoplayer%7C7.2.1%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-7.2.1-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Ccn.jzvd%7Cjiaozivideoplayer%7C7.2.2%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-7.2.2-green.svg"></a>
<a href="http://choosealicense.com/licenses/mit/"><img src="https://img.shields.io/badge/license-MIT-green.svg"></a>
<a href="https://android-arsenal.com/details/1/3269"><img src="https://img.shields.io/badge/Android%20Arsenal-jiaozivideoplayer-green.svg?style=true"></a>
</p>
Expand All @@ -11,7 +11,9 @@

## 置顶消息:

Q群:490442439, 2群:761899104, 验证信息:jzvd, 微信公众号:jzvdjzt,微信:lipanhelloworld,QQ:1066666651,[Telegram](https://t.me/jiaozitoken)[Weibo](http://weibo.com/2342820395/profile?topnav=1&wvr=6&is_all=1)[公众号文章](https://github.com/Jzvd/JiaoZiVideoPlayer/wiki/%E5%85%AC%E4%BC%97%E5%8F%B7%E6%96%87%E7%AB%A0)
群主微信进饺子粉丝群,沟通重心从Q群转移到微信群。微信:lipanhelloworld备注JZVD,Q群:490442439, 2群:761899104, 验证信息:jzvd, 微信公众号:jzvdjzt,QQ:1066666651,[Telegram](https://t.me/jiaozitoken)[Weibo](http://weibo.com/2342820395/profile?topnav=1&wvr=6&is_all=1)[公众号文章](https://github.com/Jzvd/JiaoZiVideoPlayer/wiki/%E5%85%AC%E4%BC%97%E5%8F%B7%E6%96%87%E7%AB%A0)



为了增加项目质量,促进项目进度,调用社群力量,方便社群管理,推出基于以太坊ERC-20的数字通证[JiaoZiToken(JZT)(饺子Token)](https://github.com/JZVD/JZT),必定大有可为。

Expand All @@ -37,21 +39,21 @@ Q群:490442439, 2群:761899104, 验证信息:jzvd, 微信公众号:jzvdjzt,微

## 文档

- [文档 - API](https://github.com/Jzvd/JiaoZiVideoPlayer/wiki/%E6%96%87%E6%A1%A3-%E2%80%94-API),下载安装demo[jiaozivideoplayer-7.2.1.apk](https://github.com/Jzvd/JiaoZiVideoPlayer/releases/download/v7.2.1/jiaozivideoplayer-7.2.1.apk),仔细过一遍demo
- [文档 - API](https://github.com/Jzvd/JiaoZiVideoPlayer/wiki/%E6%96%87%E6%A1%A3-%E2%80%94-API),下载安装demo[jiaozivideoplayer-7.2.2.apk](https://github.com/Jzvd/JiaoZiVideoPlayer/releases/download/v7.2.2/jiaozivideoplayer-7.2.2.apk),仔细过一遍demo
- [文档 - 自定义Jzvd](https://github.com/Jzvd/JiaoZiVideoPlayer/wiki/%E6%96%87%E6%A1%A3-%E2%80%94-%E8%87%AA%E5%AE%9A%E4%B9%89Jzvd),继承JzvdStd实现自己的播放器
- [文档 - 自定义播放内核](https://github.com/Jzvd/JiaoZiVideoPlayer/wiki/%E6%96%87%E6%A1%A3-%E2%80%94-%E8%87%AA%E5%AE%9A%E4%B9%89%E6%92%AD%E6%94%BE%E5%86%85%E6%A0%B8),测试哪个播放内核适合自己的项目

## 效果

<img src="https://user-images.githubusercontent.com/2038071/31045150-a077cc8a-a5a2-11e7-8dc2-7a0e3a9f3e62.jpg" width="90%">

<img src="https://user-images.githubusercontent.com/2038071/74347293-da19d200-4deb-11ea-865d-c6415f934d2f.gif" width="90%">
<img src="https://user-images.githubusercontent.com/2038071/76214561-f6245e00-6247-11ea-85bb-da35ede45463.gif" width="90%">

## QuickStart

1.添加类库
```gradle
compile 'cn.jzvd:jiaozivideoplayer:7.2.1'
compile 'cn.jzvd:jiaozivideoplayer:7.2.2'
```

2.添加布局
Expand All @@ -71,7 +73,7 @@ compile 'cn.jzvd:jiaozivideoplayer:7.2.1'
MyJzvdStd jzvdStd = (MyJzvdStd) findViewById(R.id.jz_video);
jzvdStd.setUp("http://jzvd.nathen.cn/c6e3dc12a1154626b3476d9bf3bd7266/6b56c5f0dc31428083757a45764763b0-5287d2089db37e62345123a1be272f8b.mp4"
, "饺子闭眼睛");
jzvdStd.thumbImageView.setImage("http://p.qpic.cn/videoyun/0/2449_43b6f696980311e59ed467f22794e792_1/640");
jzvdStd.posterImageView.setImage("http://p.qpic.cn/videoyun/0/2449_43b6f696980311e59ed467f22794e792_1/640");
```

4.在`Activity`
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "cn.jzvd.demo"
minSdkVersion 16
targetSdkVersion 29
versionCode 96
versionName "7.2.1"
versionCode 97
versionName "7.2.2"
ndk {
// add support lib
abiFilters 'armeabi-v7a' //, 'arm64-v8a'//, "mips" //,'armeabi''x86',, 'x86_64',
Expand Down
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
<activity
android:name=".tiktok.ActivityTikTok"
android:configChanges="orientation|screenSize|keyboardHidden"
android:theme="@style/Theme.AppCompat.NoActionBar"
android:screenOrientation="portrait"/>

<activity
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/cn/jzvd/demo/ActivityApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
jzDataSource.headerMap.put("key", "value");//header
mJzvdStd.setUp(jzDataSource
, JzvdStd.SCREEN_NORMAL);
Glide.with(this).load(VideoConstant.videoThumbList[0]).into(mJzvdStd.thumbImageView);
Glide.with(this).load(VideoConstant.videoPosterList[0]).into(mJzvdStd.posterImageView);
// mJzvdStd.seekToInAdvance = 20000;
// Jzvd.SAVE_PROGRESS = false;//把这些注释的代码放到按钮上,让它可操作可见。

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/cn/jzvd/demo/ActivityApiCustomMedia.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {

Glide.with(this)
.load("http://jzvd-pic.nathen.cn/jzvd-pic/1bb2ebbe-140d-4e2e-abd2-9e7e564f71ac.png")
.into(jzvdStd.thumbImageView);
.into(jzvdStd.posterImageView);

}

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/cn/jzvd/demo/ActivityApiExtendsNormal.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ protected void onCreate(Bundle savedInstanceState) {
jzvdStd.setUp(VideoConstant.videoUrlList[0], "饺子不信"
, JzvdStd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbList[0])
.into(jzvdStd.thumbImageView);
.load(VideoConstant.videoPosterList[0])
.into(jzvdStd.posterImageView);
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/cn/jzvd/demo/ActivityApiOrientation.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
mJzvdStd.setUp(VideoConstant.videoUrlList[0], "饺子不信"
, JzvdStd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbList[0])
.into(mJzvdStd.thumbImageView);
.load(VideoConstant.videoPosterList[0])
.into(mJzvdStd.posterImageView);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
myJzvdStd.setUp(VideoConstant.videoUrls[0][7], VideoConstant.videoTitles[0][7]
, JzvdStd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbs[0][7])
.into(myJzvdStd.thumbImageView);
.load(VideoConstant.videoPosters[0][7])
.into(myJzvdStd.posterImageView);
// The Point IS 或者这样写也可以
// myJzvdStd.videoRotation = 180;
}
Expand Down
45 changes: 27 additions & 18 deletions app/src/main/java/cn/jzvd/demo/ActivityApiUISmallChange.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import cn.jzvd.Jzvd;
import cn.jzvd.JzvdStd;
import cn.jzvd.demo.CustomJzvd.JzvdStdAutoCompleteAfterFullscreen;
import cn.jzvd.demo.CustomJzvd.JzvdStdLockScreen;
import cn.jzvd.demo.CustomJzvd.JzvdStdMp3;
import cn.jzvd.demo.CustomJzvd.JzvdStdShowShareButtonAfterFullscreen;
import cn.jzvd.demo.CustomJzvd.JzvdStdShowTextureViewAfterAutoComplete;
Expand All @@ -29,6 +30,7 @@ public class ActivityApiUISmallChange extends AppCompatActivity {
JzvdStdVolumeAfterFullscreen jzvdStdVolumeAfterFullscreen;
JzvdStdMp3 jzvdStdMp3;
JzvdStdSpeed jzvdStdSpeed;
JzvdStdLockScreen lockScreen;

JzvdStd jzvdStd_1_1, jzvdStd_16_9;

Expand All @@ -42,66 +44,73 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
getSupportActionBar().setTitle("SmallChangeUI");
setContentView(R.layout.activity_ui_small_change);


lockScreen = findViewById(R.id.lock_screen);
lockScreen.setUp("http://jzvd.nathen.cn/342a5f7ef6124a4a8faf00e738b8bee4/cf6d9db0bd4d41f59d09ea0a81e918fd-5287d2089db37e62345123a1be272f8b.mp4"
, "饺子快长大");
Glide.with(this).load("http://jzvd-pic.nathen.cn/jzvd-pic/1bb2ebbe-140d-4e2e-abd2-9e7e564f71ac.png").into(lockScreen.posterImageView);


jzvdStdWithShareButton = findViewById(R.id.custom_videoplayer_standard_with_share_button);
jzvdStdWithShareButton.setUp(VideoConstant.videoUrlList[3], "饺子想呼吸", Jzvd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbList[3])
.into(jzvdStdWithShareButton.thumbImageView);
.load(VideoConstant.videoPosterList[3])
.into(jzvdStdWithShareButton.posterImageView);


jzvdStdShowTitleAfterFullscreen = findViewById(R.id.custom_videoplayer_standard_show_title_after_fullscreen);
jzvdStdShowTitleAfterFullscreen.setUp(VideoConstant.videoUrlList[4], "饺子想摇头", Jzvd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbList[4])
.into(jzvdStdShowTitleAfterFullscreen.thumbImageView);
.load(VideoConstant.videoPosterList[4])
.into(jzvdStdShowTitleAfterFullscreen.posterImageView);

jzvdStdShowTextureViewAfterAutoComplete = findViewById(R.id.custom_videoplayer_standard_show_textureview_aoto_complete);
jzvdStdShowTextureViewAfterAutoComplete.setUp(VideoConstant.videoUrlList[5], "饺子想旅行", Jzvd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbList[5])
.into(jzvdStdShowTextureViewAfterAutoComplete.thumbImageView);
.load(VideoConstant.videoPosterList[5])
.into(jzvdStdShowTextureViewAfterAutoComplete.posterImageView);

jzvdStdAutoCompleteAfterFullscreen = findViewById(R.id.custom_videoplayer_standard_aoto_complete);
jzvdStdAutoCompleteAfterFullscreen.setUp(VideoConstant.videoUrls[0][1], "饺子没来", Jzvd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbs[0][1])
.into(jzvdStdAutoCompleteAfterFullscreen.thumbImageView);
.load(VideoConstant.videoPosters[0][1])
.into(jzvdStdAutoCompleteAfterFullscreen.posterImageView);

jzvdStd_1_1 = findViewById(R.id.jz_videoplayer_1_1);
jzvdStd_1_1.setUp(VideoConstant.videoUrls[0][1], "饺子有事吗", Jzvd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbs[0][1])
.into(jzvdStd_1_1.thumbImageView);
.load(VideoConstant.videoPosters[0][1])
.into(jzvdStd_1_1.posterImageView);
jzvdStd_1_1.widthRatio = 1;
jzvdStd_1_1.heightRatio = 1;

jzvdStd_16_9 = findViewById(R.id.jz_videoplayer_16_9);
jzvdStd_16_9.setUp(VideoConstant.videoUrls[0][1], "饺子来不了", Jzvd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbs[0][1])
.into(jzvdStd_16_9.thumbImageView);
.load(VideoConstant.videoPosters[0][1])
.into(jzvdStd_16_9.posterImageView);
jzvdStd_16_9.widthRatio = 16;
jzvdStd_16_9.heightRatio = 9;

jzvdStdVolumeAfterFullscreen = findViewById(R.id.jz_videoplayer_volume);
jzvdStdVolumeAfterFullscreen.setUp(VideoConstant.videoUrls[0][1], "饺子摇摆", Jzvd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbs[0][1])
.into(jzvdStdVolumeAfterFullscreen.thumbImageView);
.load(VideoConstant.videoPosters[0][1])
.into(jzvdStdVolumeAfterFullscreen.posterImageView);

jzvdStdMp3 = findViewById(R.id.jz_videoplayer_mp3);
jzvdStdMp3.setUp(VideoConstant.videoUrls[0][1],
"饺子你听", Jzvd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbs[0][1])
.into(jzvdStdMp3.thumbImageView);
.load(VideoConstant.videoPosters[0][1])
.into(jzvdStdMp3.posterImageView);

jzvdStdSpeed = findViewById(R.id.jz_videoplayer_speed);
jzvdStdSpeed.setUp(VideoConstant.videoUrls[0][1],
"饺子快点", Jzvd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbs[0][1])
.into(jzvdStdSpeed.thumbImageView);
.load(VideoConstant.videoPosters[0][1])
.into(jzvdStdSpeed.posterImageView);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ public View getView(int position, View convertView, ViewGroup parent) {
VideoConstant.videoTitles[0][position], Jzvd.SCREEN_NORMAL);
viewHolder.jzvdStd.positionInList = position;
Glide.with(ActivityListViewMultiHolder.this)
.load(VideoConstant.videoThumbs[0][position])
.into(viewHolder.jzvdStd.thumbImageView);
.load(VideoConstant.videoPosters[0][position])
.into(viewHolder.jzvdStd.posterImageView);
} else {
TextViewHolder textViewHolder;
if (convertView != null && convertView.getTag() != null && convertView.getTag() instanceof TextViewHolder) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/cn/jzvd/demo/ActivityListViewNormal.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
listView.setAdapter(new AdapterListView(this,
VideoConstant.videoUrls[0],
VideoConstant.videoTitles[0],
VideoConstant.videoThumbs[0]));
VideoConstant.videoPosters[0]));

listView.setOnScrollListener(new AbsListView.OnScrollListener() {
@Override
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/cn/jzvd/demo/ActivityMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
myJzvdStd = findViewById(R.id.jz_video);
myJzvdStd.setUp("http://jzvd.nathen.cn/342a5f7ef6124a4a8faf00e738b8bee4/cf6d9db0bd4d41f59d09ea0a81e918fd-5287d2089db37e62345123a1be272f8b.mp4"
, "饺子快长大");
Glide.with(this).load("http://jzvd-pic.nathen.cn/jzvd-pic/1bb2ebbe-140d-4e2e-abd2-9e7e564f71ac.png").into(myJzvdStd.thumbImageView);
Glide.with(this).load("http://jzvd-pic.nathen.cn/jzvd-pic/1bb2ebbe-140d-4e2e-abd2-9e7e564f71ac.png").into(myJzvdStd.posterImageView);

}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/cn/jzvd/demo/ActivityPreloading.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
// , "饺子快长大");
// jzvdStd.setUp("http://jzvd.nathen.cn/4f965ad507ef4194a60a943a34cfe147/32af151ea132471f92c9ced2cff785ea-5287d2089db37e62345123a1be272f8b.mp4"
// , "饺子快长大");
Glide.with(this).load("http://jzvd-pic.nathen.cn/jzvd-pic/1bb2ebbe-140d-4e2e-abd2-9e7e564f71ac.png").into(jzvdStd.thumbImageView);
Glide.with(this).load("http://jzvd-pic.nathen.cn/jzvd-pic/1bb2ebbe-140d-4e2e-abd2-9e7e564f71ac.png").into(jzvdStd.posterImageView);

}

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/cn/jzvd/demo/ActivityScreenRotate.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
mJzvdStd.setUp(VideoConstant.videoUrlList[0], "饺子不信"
, JzvdStd.SCREEN_NORMAL);
Glide.with(this)
.load(VideoConstant.videoThumbList[0])
.into(mJzvdStd.thumbImageView);
.load(VideoConstant.videoPosterList[0])
.into(mJzvdStd.posterImageView);
ScreenRotateUtils.getInstance(this.getApplicationContext()).setOrientationChangeListener(this);
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/cn/jzvd/demo/ActivityTinyWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
, JzvdStd.SCREEN_NORMAL);
Glide.with(this)
.load("http://jzvd-pic.nathen.cn/jzvd-pic/1bb2ebbe-140d-4e2e-abd2-9e7e564f71ac.png")
.into(jzvdStdTinyWindow.thumbImageView);
.into(jzvdStdTinyWindow.posterImageView);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
VideoConstant.videoUrls[0][position],
VideoConstant.videoTitles[0][position], Jzvd.SCREEN_NORMAL);
videoHolder.jzvdStd.positionInList = position;
Glide.with(ActivityTinyWindowRecycleViewMultiHolder.this).load(VideoConstant.videoThumbs[0][position]).into(videoHolder.jzvdStd.thumbImageView);
Glide.with(ActivityTinyWindowRecycleViewMultiHolder.this).load(VideoConstant.videoPosters[0][position]).into(videoHolder.jzvdStd.posterImageView);
}
}

Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/cn/jzvd/demo/ActivityWebView.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public void adViewJiaoZiVideoPlayer(final int width, final int height, final int
jzvdStd.setUp(VideoConstant.videoUrlList[1], "饺子骑大马",
Jzvd.SCREEN_NORMAL);
Glide.with(ActivityWebView.this)
.load(VideoConstant.videoThumbList[1])
.into(jzvdStd.thumbImageView);
.load(VideoConstant.videoPosterList[1])
.into(jzvdStd.posterImageView);
ViewGroup.LayoutParams ll = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
AbsoluteLayout.LayoutParams layoutParams = new AbsoluteLayout.LayoutParams(ll);
layoutParams.y = JZUtils.dip2px(ActivityWebView.this, top);
Expand All @@ -91,8 +91,8 @@ public void adViewJiaoZiVideoPlayer(final int width, final int height, final int
jzvdStd.setUp(VideoConstant.videoUrlList[2], "饺子失态了",
Jzvd.SCREEN_NORMAL);
Glide.with(ActivityWebView.this)
.load(VideoConstant.videoThumbList[2])
.into(jzvdStd.thumbImageView);
.load(VideoConstant.videoPosterList[2])
.into(jzvdStd.posterImageView);
ViewGroup.LayoutParams ll = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
AbsoluteLayout.LayoutParams layoutParams = new AbsoluteLayout.LayoutParams(ll);
layoutParams.y = JZUtils.dip2px(ActivityWebView.this, top);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/cn/jzvd/demo/AdapterComment.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {

@Override
public void onBindViewHolder(ViewHolder holder, int position) {
Glide.with(holder.ivHead.getContext()).load(VideoConstant.videoThumbs[0][position])
Glide.with(holder.ivHead.getContext()).load(VideoConstant.videoPosters[0][position])
.into(holder.ivHead);
holder.tvName.setText(VideoConstant.videoTitles[0][position]);
holder.tvContent.setText(VideoConstant.videoTitles[0][position]);
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/java/cn/jzvd/demo/AdapterListView.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public class AdapterListView extends BaseAdapter {

String[] videoUrls;
String[] videoTitles;
String[] videoThumbs;
String[] videoposters;

public AdapterListView(Context context, String[] videoUrls, String[] videoTitles, String[] videoThumbs) {
public AdapterListView(Context context, String[] videoUrls, String[] videoTitles, String[] videoposters) {
this.context = context;
this.videoUrls = videoUrls;
this.videoTitles = videoTitles;
this.videoThumbs = videoThumbs;
this.videoposters = videoposters;
}

@Override
Expand Down Expand Up @@ -64,8 +64,8 @@ public View getView(int position, View convertView, ViewGroup parent) {
videoUrls[position],
videoTitles[position], Jzvd.SCREEN_NORMAL);
Glide.with(convertView.getContext())
.load(videoThumbs[position])
.into(viewHolder.jzvdStd.thumbImageView);
.load(videoposters[position])
.into(viewHolder.jzvdStd.posterImageView);
viewHolder.jzvdStd.positionInList = position;
return convertView;
}
Expand Down
Loading

0 comments on commit 31565d7

Please sign in to comment.