Skip to content

Commit

Permalink
Fix the loadfile command
Browse files Browse the repository at this point in the history
  • Loading branch information
core1024 committed Oct 24, 2024
1 parent 4ca52bf commit 00fc6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShellVideo/ShellVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ function ShellVideo(options) {
ipc.send('mpv-set-prop', ['input-vo-keyboard', separateWindow]);

if (commandArgs.time !== null && isFinite(commandArgs.time)) {
ipc.send('mpv-command', ['loadfile', stream.url, 'replace', 'start=+'+Math.floor(parseInt(commandArgs.time, 10)/1000)]);
ipc.send('mpv-command', ['loadfile', stream.url, 'replace', '-1', 'start=+'+Math.floor(parseInt(commandArgs.time, 10)/1000)]);
} else {
ipc.send('mpv-command', ['loadfile', stream.url]);
}
Expand Down

0 comments on commit 00fc6b7

Please sign in to comment.