Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-09-19 20:42:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ce3b647bb8a9528d90cded8940ad05d2712f2486
ce3b647b
1 parent
662c5290
fix: 视频频道中对视频在播放状态下,先暂停、再播放,然后切换到其他频道再返回、视频没有继续播放
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
View file @
ce3b647
...
...
@@ -306,9 +306,9 @@ export struct DetailPlayShortVideoPage {
onHeightDidChange: (height: number) => {
this.playerWidth = px2vp(this.windowWidth)
this.playerHeight = px2vp(this.windowHeight - height)
Logger.debug(TAG,
"height: " + px2vp(height) + " ===> 视频高度: " + this.playerHeight + " window height: " +
px2vp(this.windowHeight))
// Logger.debug(TAG,
// "height: " + px2vp(height) + " ===> 视频高度: " + this.playerHeight + " window height: " +
// px2vp(this.windowHeight))
}
})
this.playerViewBuilder()
...
...
@@ -332,13 +332,9 @@ export struct DetailPlayShortVideoPage {
.layoutWeight(1)
.onClick(() => {
this.playerController?.switchPlayOrPause();
this.isPlay = !this.isPlay
this.playerController.onStatusChange = (status: number) => {
this.status = status
if (status === PlayerConstants.STATUS_PAUSE) {
this.isPlay = false
} else if (status === PlayerConstants.STATUS_START) {
this.isPlay = true
}
}
})
...
...
Please
register
or
login
to post a comment