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

Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
This commit is contained in:
Lachezar Lechev 2025-07-15 21:58:17 +03:00
parent 40c77d3d17
commit 3c2914aca2
No known key found for this signature in database
GPG key ID: FDC9325CE311E8A4

View file

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