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-08-07 15:46:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
de86164ce6e865e1eaf4b754466ad9f9eeb4f45f
de86164c
1 parent
f11980c7
fix: WDPlayController play()增加prepare逻辑
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
sight_harmony/features/wdPlayer/src/main/ets/controller/WDPlayerController.ets
sight_harmony/features/wdPlayer/src/main/ets/controller/WDPlayerController.ets
View file @
de86164
...
...
@@ -250,7 +250,11 @@ export class WDPlayerController {
// if (this.avPlayer == null) {
// return
// }
this.avPlayer?.play();
this.avPlayer?.prepare().then(() => {
this.avPlayer?.play()
}, (err: BusinessError) => {
console.error('Failed to prepare,error message is :' + err.message)
})
}
async startRenderFrame(cb: Function) {
...
...
Please
register
or
login
to post a comment