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
2421ac1e
Commit
2421ac1e
authored
Jul 28, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
dfb91e38
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
MainActivity.kt
...ain/java/com/mints/helivideo/ui/activitys/MainActivity.kt
+0
-2
TXVideoBaseView.java
...in/java/com/mints/helivideo/video/tx/TXVideoBaseView.java
+0
-3
TXVodPlayerWrapper.java
...java/com/mints/helivideo/video/tx/TXVodPlayerWrapper.java
+3
-0
TxRecommendVideo2Adapter.kt
...ts/helivideo/video/tx/adapter/TxRecommendVideo2Adapter.kt
+1
-1
No files found.
video/app/src/main/java/com/mints/helivideo/ui/activitys/MainActivity.kt
View file @
2421ac1e
...
...
@@ -62,8 +62,6 @@ class MainActivity : BaseActivity(), View.OnClickListener {
override
fun
initViewsAndEvents
()
{
DPHolderManager
.
initDpSdk
(
MintsApplication
.
getContext
());
ExpressManager
.
instance
.
preLoadAd
()
audioManager
=
getSystemService
(
Context
.
AUDIO_SERVICE
)
as
AudioManager
contentLayout
=
findViewById
(
R
.
id
.
content_layout
)
...
...
video/app/src/main/java/com/mints/helivideo/video/tx/TXVideoBaseView.java
View file @
2421ac1e
...
...
@@ -218,9 +218,6 @@ public class TXVideoBaseView extends RelativeLayout implements View.OnClickListe
public
void
startPlay
()
{
if
(
mTXVodPlayerWrapper
!=
null
)
{
if
(
mIvCover
.
getVisibility
()
==
View
.
VISIBLE
)
{
mIvCover
.
setVisibility
(
View
.
GONE
);
}
mPauseImageView
.
setVisibility
(
View
.
GONE
);
mTXVodPlayerWrapper
.
setVodChangeListener
(
this
);
mTXVodPlayerWrapper
.
resumePlay
();
...
...
video/app/src/main/java/com/mints/helivideo/video/tx/TXVodPlayerWrapper.java
View file @
2421ac1e
...
...
@@ -115,6 +115,9 @@ public class TXVodPlayerWrapper implements ITXVodPlayListener {
||
mStatus
==
TxVodStatus
.
TX_VIDEO_PLAYER_STATUS_PAUSED
)
{
mVodPlayer
.
resume
();
playerStatusChanged
(
TxVodStatus
.
TX_VIDEO_PLAYER_STATUS_PLAYING
);
if
(
mOnPlayEventChangedListener
!=
null
)
{
mOnPlayEventChangedListener
.
onResume
();
}
}
else
{
mStartOnPrepare
=
true
;
}
...
...
video/app/src/main/java/com/mints/helivideo/video/tx/adapter/TxRecommendVideo2Adapter.kt
View file @
2421ac1e
...
...
@@ -102,7 +102,7 @@ class TxRecommendVideo2Adapter :
super
.
onViewDetachedFromWindow
(
holder
)
if
(
holder
.
itemViewType
==
MULTI_ITEM_1
)
{
val
tXVideoBaseView
=
holder
.
getView
<
TXVideoBaseView
>(
R
.
id
.
baseItemView
)
if
(
data
[
mCurrentPosition
].
itemType
==
MULTI_ITEM_1
)
{
if
(
data
[
mCurrentPosition
].
itemType
==
MULTI_ITEM_1
||
tXVideoBaseView
.
player
!=
null
)
{
if
(
tXVideoBaseView
.
player
.
url
!=
data
[
mCurrentPosition
].
video
!!
.
recommendUrl
)
{
tXVideoBaseView
.
stopForPlaying
()
}
...
...
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