wangliang_wd

feat:优化音频播控中心时间显示问题

... ... @@ -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
... ...