From 21513eb0629137687189372857a8dd354a2f83c9 Mon Sep 17 00:00:00 2001 From: rulongzhang Date: Sun, 23 Jan 2022 16:14:25 +0800 Subject: [PATCH] [Android] update version to release 9.5.11200 --- Demo/app/build.gradle | 4 +++- .../demo/shortvideo/adapter/ShortVideoPlayAdapter.java | 8 +++++--- .../liteav/demo/superplayer/model/SuperPlayerImpl.java | 1 - 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Demo/app/build.gradle b/Demo/app/build.gradle index cabbfa4..ba3cb89 100644 --- a/Demo/app/build.gradle +++ b/Demo/app/build.gradle @@ -9,7 +9,7 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 24 - versionName "9.5.0.29006" + versionName "9.5.0.1482" multiDexEnabled true ndk { @@ -63,4 +63,6 @@ dependencies { implementation('com.blankj:utilcode:1.25.9', { exclude group: 'com.google.code.gson', module: 'gson' }) + + } \ No newline at end of file diff --git a/Demo/superplayerdemo/src/main/java/com/tencent/liteav/demo/player/demo/shortvideo/adapter/ShortVideoPlayAdapter.java b/Demo/superplayerdemo/src/main/java/com/tencent/liteav/demo/player/demo/shortvideo/adapter/ShortVideoPlayAdapter.java index 961660e..a598f01 100644 --- a/Demo/superplayerdemo/src/main/java/com/tencent/liteav/demo/player/demo/shortvideo/adapter/ShortVideoPlayAdapter.java +++ b/Demo/superplayerdemo/src/main/java/com/tencent/liteav/demo/player/demo/shortvideo/adapter/ShortVideoPlayAdapter.java @@ -28,9 +28,11 @@ public ShortVideoPlayAdapter(List list) { public void onHolder(VideoViewHolder holder, ShortVideoBean bean, int position) { ViewGroup.LayoutParams layoutParams = holder.itemView.getLayoutParams(); layoutParams.height = ViewGroup.LayoutParams.MATCH_PARENT; - Glide.with(mContext).load(bean.placeholderImage). - diskCacheStrategy(DiskCacheStrategy.ALL).centerCrop() - .into(holder.mImageViewCover); + if (bean != null && bean.placeholderImage != null) { + Glide.with(mContext).load(bean.placeholderImage). + diskCacheStrategy(DiskCacheStrategy.ALL).centerCrop() + .into(holder.mImageViewCover);; + } } diff --git a/Demo/superplayerkit/src/main/java/com/tencent/liteav/demo/superplayer/model/SuperPlayerImpl.java b/Demo/superplayerkit/src/main/java/com/tencent/liteav/demo/superplayer/model/SuperPlayerImpl.java index 7bc05cc..c138cff 100644 --- a/Demo/superplayerkit/src/main/java/com/tencent/liteav/demo/superplayer/model/SuperPlayerImpl.java +++ b/Demo/superplayerkit/src/main/java/com/tencent/liteav/demo/superplayer/model/SuperPlayerImpl.java @@ -571,7 +571,6 @@ private void playTimeShiftLiveURL(int appId, String url) { try { bizidNum = Integer.parseInt(bizid); } catch (NumberFormatException e) { - e.printStackTrace(); Log.e(TAG, "playTimeShiftLiveURL: bizidNum error = " + bizid); } mLivePlayer.prepareLiveSeek(domian, bizidNum);