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
d6d5ed17
Commit
d6d5ed17
authored
Sep 25, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
7fb14a0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
CountDownVideoView.java
...a/com/duben/dayplaylet/ui/widgets/CountDownVideoView.java
+1
-1
DramaApiDetailActivity.kt
.../com/duben/dayplaylet/video/csj/DramaApiDetailActivity.kt
+11
-1
No files found.
video/app/src/main/java/com/duben/dayplaylet/ui/widgets/CountDownVideoView.java
View file @
d6d5ed17
...
...
@@ -72,7 +72,7 @@ public class CountDownVideoView extends LinearLayout {
public
void
reset
()
{
isOver
=
false
;
cdCountVedioView
.
reset
();
isPlaying
=
tru
e
;
isPlaying
=
fals
e
;
}
public
void
stop
()
{
...
...
video/app/src/main/java/com/duben/dayplaylet/video/csj/DramaApiDetailActivity.kt
View file @
d6d5ed17
...
...
@@ -204,6 +204,10 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
videoPresenter
.
rdVedioMsg
()
}
private
fun
isLockIndex
():
Boolean
{
return
mCurrentIndex
>
mInitUnlockIndex
}
private
var
dramaListener
:
IDPDramaListener
=
object
:
IDPDramaListener
()
{
override
fun
onDPSeekTo
(
position
:
Int
,
time
:
Long
)
{
...
...
@@ -224,6 +228,8 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
}
if
(
cdvv
.
isPlaying
)
{
cdvv
.
resume
()
}
else
{
cdvv
.
start
()
}
}
...
...
@@ -242,6 +248,8 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
if
(
cdvv
.
isPlaying
)
{
cdvv
.
resume
()
}
else
{
cdvv
.
start
()
}
}
...
...
@@ -437,7 +445,9 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
tv_tips
.
visibility
=
View
.
GONE
triangle
.
visibility
=
View
.
GONE
cdvv
.
setTime
(
data
.
surplusSeconds
)
cdvv
.
start
()
if
(!
isLockIndex
())
{
cdvv
.
start
()
}
cdvv
.
setCountDownVideoListener
(
this
)
cl_red_box
.
setOnClickListener
{
if
(!
cdvv
.
isOver
)
return
@setOnClickListener
...
...
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