mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
Set pause status on last track end (#291)
This commit is contained in:
parent
ccfadda729
commit
fdff79496a
2 changed files with 8 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ export const gaplessHandler = (args: {
|
|||
|
||||
const durationPadding = isFlac ? 0.065 : 0.116;
|
||||
if (currentTime + durationPadding >= duration) {
|
||||
return nextPlayerRef.current.getInternalPlayer().play();
|
||||
return nextPlayerRef.current.getInternalPlayer()?.play();
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue