Skip to content

Commit 558bd26

Browse files
committed
✨ feat: 尝试优化音频输出延迟
1 parent 9523469 commit 558bd26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/audio-player/AudioElementPlayer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class AudioElementPlayer extends BaseAudioPlayer {
196196
if (this.isInternalSeeking) {
197197
return this.targetSeekTime;
198198
}
199-
return (this.audioElement.currentTime || 0) + this.compensatedLatency;
199+
return (this.audioElement.currentTime || 0) - this.compensatedLatency;
200200
}
201201

202202
/** 获取是否暂停状态 */

0 commit comments

Comments
 (0)