mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Merge pull request #975 from Stremio/fix/player-negative-number-from-stremio-video
Some checks failed
Build / build (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
fix: Player - TimeChanged & Seek time & duration now have Math.max(0, x)
This commit is contained in:
commit
665cf7dd2a
1 changed files with 4 additions and 4 deletions
|
|
@ -102,8 +102,8 @@ const usePlayer = (urlParams) => {
|
|||
args: {
|
||||
action: 'TimeChanged',
|
||||
args: {
|
||||
time: Math.round(time),
|
||||
duration,
|
||||
time: Math.max(0, Math.round(time)),
|
||||
duration: Math.max(0, Math.round(duration)),
|
||||
device,
|
||||
}
|
||||
}
|
||||
|
|
@ -118,8 +118,8 @@ const usePlayer = (urlParams) => {
|
|||
args: {
|
||||
action: 'Seek',
|
||||
args: {
|
||||
time: Math.round(time),
|
||||
duration,
|
||||
time: Math.max(0, Math.round(time)),
|
||||
duration: Math.max(0, Math.round(duration)),
|
||||
device,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue