Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
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_goodmoney
Commits
a12406bf
Commit
a12406bf
authored
Feb 25, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_ad' of
http://39.97.65.143:81/android/android_goodmoney
into dev_ad
parents
8fb1512f
386e0d29
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
iReader-release-1.0.1.aar
GoodMoney/app/libs/iReader-release-1.0.1.aar
+0
-0
DrawNativeVideoActivity.kt
...m/mints/goodmoney/ui/activitys/DrawNativeVideoActivity.kt
+15
-2
No files found.
GoodMoney/app/libs/iReader-release-1.0.1.aar
0 → 100755
View file @
a12406bf
File added
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/DrawNativeVideoActivity.kt
View file @
a12406bf
...
...
@@ -74,6 +74,9 @@ class DrawNativeVideoActivity : BaseActivity(),
const
val
WEB_VIDEO_URL
=
"https://vring.kuyin123.com/friend/94aa83142f7f5c98?videoId="
}
// Video 视频播放生命周期控制
private
var
isVideoPlayPause
=
false
// 列表页面播放page
private
var
mCurrentPage
=
0
...
...
@@ -118,6 +121,7 @@ class DrawNativeVideoActivity : BaseActivity(),
mLayoutManager
=
ViewPagerLayoutManager
(
this
,
OrientationHelper
.
VERTICAL
)
mDrawVideoAdapter
=
DrawVideoAdapter
(
this
,
drawDatas
)
recy_draw_native
.
setItemViewCacheSize
(
1
)
recy_draw_native
.
layoutManager
=
mLayoutManager
recy_draw_native
.
adapter
=
mDrawVideoAdapter
...
...
@@ -306,8 +310,6 @@ class DrawNativeVideoActivity : BaseActivity(),
videoAdingManager
.
setVideoAdingListener
(
null
)
videoAdingManager
.
onDestory
()
releaseVideo
(
mCurrentPlayIndex
)
super
.
onDestroy
()
if
(
downloadId
!=
-
1
)
{
...
...
@@ -483,4 +485,15 @@ class DrawNativeVideoActivity : BaseActivity(),
}
}
}
override
fun
onPause
()
{
super
.
onPause
()
// 释放当前页Video
releaseVideo
(
0
)
}
override
fun
onResume
()
{
super
.
onResume
()
playVideo
(
0
)
}
}
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