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-25 15:22:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2fccc894495191104661dc02f155459bc9b595f8
2fccc894
1 parent
fa108a0d
fix: 沉浸式视频增加播放中关闭,开启wifi视频流量提示逻辑
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
View file @
2fccc89
...
...
@@ -245,6 +245,13 @@ export struct DetailPlayShortVideoPage {
// 注册监听网络连接
if (this.currentIndex === this.index && type != NetworkType.TYPE_UNKNOWN) {
console.log(TAG, '网络连接状态变化', type, 'this.currentIndex', this.currentIndex, 'this.index', this.index)
if(type == NetworkType.TYPE_CELLULAR) {
this.toastTextVisible = true
this.onlyWifiLoadVideo = false
} else if(type == NetworkType.TYPE_WIFI) {
this.toastTextVisible = false
this.onlyWifiLoadVideo = true
}
this.currentIndexChange()
}
}, 1000)
...
...
@@ -426,10 +433,7 @@ export struct DetailPlayShortVideoPage {
.onClick(() => {
this.onlyWifiLoadVideo = true
this.toastTextVisible = false
this.playerController?.play()
this.playerController.startRenderFrame(() => {
this.imageVisible = false
})
this.currentIndexChange()
})
}
.width('100%')
...
...
Please
register
or
login
to post a comment