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-17 10:45:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
307e0809d80ef10de423a3c80b17b45ae75076c3
307e0809
1 parent
6ce13de2
feat:优化音频播控中心时间显示问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
sight_harmony/features/wdPlayer/src/main/ets/controller/BackgroundAudioController.ets
sight_harmony/features/wdPlayer/src/main/ets/controller/BackgroundAudioController.ets
View file @
307e080
...
...
@@ -202,6 +202,13 @@ export class BackgroundAudioController {
}
if (force == false && this.hasSetupProgress) {
let playbackState: AVSessionManager.AVPlaybackState = {
position: {
elapsedTime: progressDuration, // 已经播放的位置,以ms为单位
updateTime: new Date().getTime(), // 应用更新当前位置时的时间戳,以ms为单位
},
};
this.lastSession?.setAVPlaybackState(playbackState, (err) => {});
return
}
this.hasSetupProgress = true
...
...
Please
register
or
login
to post a comment