mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 15:52:02 +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: {
|
args: {
|
||||||
action: 'TimeChanged',
|
action: 'TimeChanged',
|
||||||
args: {
|
args: {
|
||||||
time: Math.round(time),
|
time: Math.max(0, Math.round(time)),
|
||||||
duration,
|
duration,
|
||||||
device,
|
device,
|
||||||
}
|
}
|
||||||
|
|
@ -118,7 +118,7 @@ const usePlayer = (urlParams) => {
|
||||||
args: {
|
args: {
|
||||||
action: 'Seek',
|
action: 'Seek',
|
||||||
args: {
|
args: {
|
||||||
time: Math.round(time),
|
time: Math.max(0, Math.round(time)),
|
||||||
duration,
|
duration,
|
||||||
device,
|
device,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue