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
wangliang_wd
2024-10-22 15:41:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
49c94377686836323484b681b2a0684c53aa3ad1
49c94377
1 parent
63d40f8d
feat:优化直播界面定时器释放
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/video/PlayUIComponent.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/video/PlayUIComponent.ets
View file @
49c9437
...
...
@@ -29,6 +29,7 @@ export struct PlayUIComponent {
@Prop liveUrl: string
// 当前播放资源的状态
@Consume playSourceState: number
@State time: number = -1
manualClickPauseOrPlayBack?:(manualClickPauseOrPlay: boolean) => void
...
...
@@ -37,16 +38,15 @@ export struct PlayUIComponent {
this.contentDetailData?.liveInfo?.liveState === 'wait') {
return
}
let time: number = 0
clearTimeout(this.time)
if (this.isMenuVisible) {
setTimeout(() => {
this.time =
setTimeout(() => {
if(this.ispause){
return
}
this.isMenuVisible = false
clearTimeout(this.time)
}, 5 * 1000)
} else {
clearTimeout(time)
}
}
...
...
Please
register
or
login
to post a comment