mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
feat(player): sync playing progress to mpris service on linux
Co-authored-by: alex3236 <45303195+alex3236@users.noreply.github.com>
This commit is contained in:
parent
6ad756b215
commit
486b04b70b
3 changed files with 14 additions and 3 deletions
|
|
@ -566,7 +566,7 @@ export default {
|
|||
},
|
||||
setLyricsInterval() {
|
||||
this.lyricsInterval = setInterval(() => {
|
||||
const progress = this.player.seek() ?? 0;
|
||||
const progress = this.player.seek(null, false) ?? 0;
|
||||
let oldHighlightLyricIndex = this.highlightLyricIndex;
|
||||
this.highlightLyricIndex = this.lyric.findIndex((l, index) => {
|
||||
const nextLyric = this.lyric[index + 1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue