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