fix: Player - TimeChanged & Seek duration now has Math.max(0, x)

Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
This commit is contained in:
Lachezar Lechev 2025-07-15 22:04:57 +03:00
parent 3c2914aca2
commit 20bbe12a8a
No known key found for this signature in database
GPG key ID: FDC9325CE311E8A4

View file

@ -103,7 +103,7 @@ const usePlayer = (urlParams) => {
action: 'TimeChanged',
args: {
time: Math.max(0, Math.round(time)),
duration,
duration: Math.max(0, Math.round(duration)),
device,
}
}
@ -119,7 +119,7 @@ const usePlayer = (urlParams) => {
action: 'Seek',
args: {
time: Math.max(0, Math.round(time)),
duration,
duration: Math.max(0, Math.round(duration)),
device,
}
}