Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vedio
Commits
4eb74f2b
Commit
4eb74f2b
authored
Oct 11, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
3081258c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
TxVideoActivity.kt
...n/java/com/duben/miniplayletd/video/tx/TxVideoActivity.kt
+12
-7
build.gradle
video/build.gradle
+3
-0
build.gradle
video/wxpay/build.gradle
+1
-1
No files found.
video/app/src/main/java/com/duben/miniplayletd/video/tx/TxVideoActivity.kt
View file @
4eb74f2b
...
...
@@ -297,14 +297,19 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
val
data
=
mutableListOf
<
VideoMultiItemEntity
>()
if
(
videos
.
size
>
0
)
{
for
(
video
in
videos
)
{
val
item
=
VideoMultiItemEntity
(
MULTI_ITEM_1
,
video
,
VideoModel
(
video
.
vedioUrl
))
data
.
add
(
item
)
}
if
(
mVedioBean
!!
.
unlockIndex
<
mVedioBean
!!
.
vedioTotal
)
{
val
item
=
VideoMultiItemEntity
(
MULTI_ITEM_2
,
videos
[
0
],
VideoModel
(
videos
[
0
].
vedioUrl
)
)
data
.
add
(
item
)
if
(
video
.
isLock
)
{
val
item
=
VideoMultiItemEntity
(
MULTI_ITEM_2
,
video
,
VideoModel
(
video
.
vedioUrl
)
)
data
.
add
(
item
)
}
else
{
val
item
=
VideoMultiItemEntity
(
MULTI_ITEM_1
,
video
,
VideoModel
(
video
.
vedioUrl
))
data
.
add
(
item
)
}
}
// if (mVedioBean!!.unlockIndex < mVedioBean!!.vedioTotal) {
// val item =
// VideoMultiItemEntity(MULTI_ITEM_2, videos[0], VideoModel(videos[0].vedioUrl))
// data.add(item)
// }
}
return
data
}
...
...
video/build.gradle
View file @
4eb74f2b
...
...
@@ -29,6 +29,9 @@ allprojects {
google
()
jcenter
()
mavenCentral
()
// Maven Central repository
maven
{
url
"https://maven.google.com"
}
maven
{
url
"https://jitpack.io"
}
maven
{
url
"https://s01.oss.sonatype.org/content/groups/public"
}
// 穿山甲
...
...
video/wxpay/build.gradle
View file @
4eb74f2b
...
...
@@ -37,7 +37,7 @@ dependencies {
// implementation 'androidx.appcompat:appcompat:1.2.0'
// implementation 'com.google.android.material:material:1.3.0'
api
'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:
+
'
api
'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:
5.4.0
'
compileOnly
project
(
":rxpay"
)
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment