mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
fix: Player - TimeChanged & Seek duration now has Math.max(0, x)
Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
This commit is contained in:
parent
3c2914aca2
commit
20bbe12a8a
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue