Fix video does not continuing from previous progress when opened
This commit is contained in:
1 parent
f681a7024c
commit
d2fbd59d6a
6 files changed
+31
-2
No files matched your search
@@ -78,6 +78,13 @@ export class PlayletApi {
|
||||
args.timestamp = parseInt(args.timestamp);
|
||||
}
|
||||
}
|
||||
|
||||
if (args.percentDurationWatched !== undefined) {
|
||||
if (typeof args.percentDurationWatched === "string") {
|
||||
args.percentDurationWatched = parseFloat(args.percentDurationWatched);
|
||||
}
|
||||
}
|
||||
|
||||
await PlayletApi.postJson(`${PlayletApi.host()}/api/queue/play`, args);
|
||||
}
|
||||
|
||||
@@ -99,6 +106,13 @@ export class PlayletApi {
|
||||
args.timestamp = parseInt(args.timestamp);
|
||||
}
|
||||
}
|
||||
|
||||
if (args.percentDurationWatched !== undefined) {
|
||||
if (typeof args.percentDurationWatched === "string") {
|
||||
args.percentDurationWatched = parseFloat(args.percentDurationWatched);
|
||||
}
|
||||
}
|
||||
|
||||
await PlayletApi.postJson(`${PlayletApi.host()}/api/queue`, args);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user