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
c1b64f4d
Commit
c1b64f4d
authored
Aug 01, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
a57a7a1f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
DrawExpressManager.kt
...in/java/com/mints/helivideo/ad/draw/DrawExpressManager.kt
+3
-1
DramaApiDetailActivity.kt
.../java/com/mints/helivideo/video/DramaApiDetailActivity.kt
+2
-1
TxVideoActivity.kt
...rc/main/java/com/mints/helivideo/video/TxVideoActivity.kt
+6
-5
SuperShortVideoView.java
...ava/com/mints/helivideo/video/tx/SuperShortVideoView.java
+3
-1
No files found.
video/app/src/main/java/com/mints/helivideo/ad/draw/DrawExpressManager.kt
View file @
c1b64f4d
...
@@ -199,7 +199,9 @@ class DrawExpressManager {
...
@@ -199,7 +199,9 @@ class DrawExpressManager {
isLoadSuccess
=
0
isLoadSuccess
=
0
isClickScreen
=
true
isClickScreen
=
true
// callback?.loadSuccess(frameLayout)
// callback?.loadSuccess(frameLayout)
callback
?.
loadSuccess
(
viewCache
.
lastElement
())
if
(
viewCache
.
size
>
0
)
{
callback
?.
loadSuccess
(
viewCache
.
lastElement
())
}
}
else
{
}
else
{
LogUtil
.
e
(
TAG
,
"gromore draw信息流--> 5、展示广告时失败了,广告可能超时45分钟 onError "
)
LogUtil
.
e
(
TAG
,
"gromore draw信息流--> 5、展示广告时失败了,广告可能超时45分钟 onError "
)
// 状态重置
// 状态重置
...
...
video/app/src/main/java/com/mints/helivideo/video/DramaApiDetailActivity.kt
View file @
c1b64f4d
...
@@ -560,7 +560,8 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
...
@@ -560,7 +560,8 @@ class DramaApiDetailActivity : BaseActivity(), VideoEpisodeAdapter.OnEpisodeClic
}
}
})
})
dialog
?.
setOnEpisodeClickListener
(
this
)
dialog
?.
setOnEpisodeClickListener
(
this
)
dialog
?.
setCurrentIndex
(
mCurrentIndex
-
1
)
val
index
=
if
(
mCurrentIndex
==
0
)
0
else
mCurrentIndex
-
1
dialog
?.
setCurrentIndex
(
index
)
dialog
?.
show
()
dialog
?.
show
()
}
}
...
...
video/app/src/main/java/com/mints/helivideo/video/TxVideoActivity.kt
View file @
c1b64f4d
...
@@ -27,6 +27,7 @@ import com.mints.helivideo.ui.widgets.DialogListener
...
@@ -27,6 +27,7 @@ import com.mints.helivideo.ui.widgets.DialogListener
import
com.mints.helivideo.ui.widgets.VideoEpisodeDialog
import
com.mints.helivideo.ui.widgets.VideoEpisodeDialog
import
com.mints.helivideo.ui.widgets.VipCountDialog
import
com.mints.helivideo.ui.widgets.VipCountDialog
import
com.mints.helivideo.utils.AppPreferencesManager
import
com.mints.helivideo.utils.AppPreferencesManager
import
com.mints.helivideo.utils.LogUtil
import
com.mints.helivideo.utils.SpanUtils
import
com.mints.helivideo.utils.SpanUtils
import
com.mints.helivideo.video.tx.VideoModel
import
com.mints.helivideo.video.tx.VideoModel
import
com.mints.helivideo.video.tx.adapter.TxVideoAdapter
import
com.mints.helivideo.video.tx.adapter.TxVideoAdapter
...
@@ -187,7 +188,7 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
...
@@ -187,7 +188,7 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
}
else
{
}
else
{
playIndex
=
mVedioBean
!!
.
seeIndex
-
1
playIndex
=
mVedioBean
!!
.
seeIndex
-
1
}
}
if
(
playIndex
>
mVedioBean
!!
.
vedioTotal
)
playIndex
=
0
if
(
playIndex
>
mVedioBean
!!
.
vedioTotal
||
playIndex
<=
0
)
playIndex
=
0
tipList
=
indexList
.
tip
tipList
=
indexList
.
tip
mVedioBean
=
indexList
.
vedioMsg
mVedioBean
=
indexList
.
vedioMsg
...
@@ -268,10 +269,10 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
...
@@ -268,10 +269,10 @@ class TxVideoActivity : BaseActivity(), View.OnClickListener, VideoView,
val
readPosition
=
getRealPosition
(
position
+
1
)
val
readPosition
=
getRealPosition
(
position
+
1
)
super_short_video_view
.
onItemClick
(
readPosition
)
super_short_video_view
.
onItemClick
(
readPosition
)
Handler
(
Looper
.
getMainLooper
()).
postDelayed
({
//
Handler(Looper.getMainLooper()).postDelayed({
showVipCountDialog
(
position
+
1
)
//
showVipCountDialog(position + 1)
localShowLucky
(
position
+
1
)
//
localShowLucky(position + 1)
},
300
)
//
}, 300)
}
}
private
fun
getAdapterData
():
MutableList
<
VideoMultiItemEntity
>
{
private
fun
getAdapterData
():
MutableList
<
VideoMultiItemEntity
>
{
...
...
video/app/src/main/java/com/mints/helivideo/video/tx/SuperShortVideoView.java
View file @
c1b64f4d
...
@@ -157,7 +157,7 @@ public class SuperShortVideoView extends RelativeLayout {
...
@@ -157,7 +157,7 @@ public class SuperShortVideoView extends RelativeLayout {
List
<
VideoModel
>
tempUrlList
=
initUrlList
(
position
,
MAX_PLAYER_COUNT_ON_PASS
);
List
<
VideoModel
>
tempUrlList
=
initUrlList
(
position
,
MAX_PLAYER_COUNT_ON_PASS
);
mPlayerManager
.
updateManager
(
tempUrlList
);
mPlayerManager
.
updateManager
(
tempUrlList
);
TXVodPlayerWrapper
txVodPlayerWrapper
=
mPlayerManager
.
getPlayer
(
mList
.
get
(
position
).
getVideoModel
());
TXVodPlayerWrapper
txVodPlayerWrapper
=
mPlayerManager
.
getPlayer
(
mList
.
get
(
position
).
getVideoModel
());
if
(
txVodPlayerWrapper
!=
null
)
{
if
(
txVodPlayerWrapper
!=
null
&&
mBaseItemView
!=
null
)
{
Log
.
i
(
TAG
,
"txVodPlayerWrapper "
+
txVodPlayerWrapper
+
"url-- "
+
mList
.
get
(
position
).
getVideoModel
().
videoURL
);
Log
.
i
(
TAG
,
"txVodPlayerWrapper "
+
txVodPlayerWrapper
+
"url-- "
+
mList
.
get
(
position
).
getVideoModel
().
videoURL
);
Log
.
i
(
TAG
,
"txVodPlayerWrapper "
+
txVodPlayerWrapper
);
Log
.
i
(
TAG
,
"txVodPlayerWrapper "
+
txVodPlayerWrapper
);
mBaseItemView
.
setTXVodPlayer
(
txVodPlayerWrapper
);
mBaseItemView
.
setTXVodPlayer
(
txVodPlayerWrapper
);
...
@@ -218,6 +218,8 @@ public class SuperShortVideoView extends RelativeLayout {
...
@@ -218,6 +218,8 @@ public class SuperShortVideoView extends RelativeLayout {
}
}
public
void
onItemClick
(
final
int
position
)
{
public
void
onItemClick
(
final
int
position
)
{
if
(
position
>=
mList
.
size
())
return
;
mRecyclerView
.
scrollToPosition
(
position
);
mRecyclerView
.
scrollToPosition
(
position
);
mRecyclerView
.
post
(()
->
{
mRecyclerView
.
post
(()
->
{
Log
.
i
(
TAG
,
"onItemClick"
);
Log
.
i
(
TAG
,
"onItemClick"
);
...
...
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