Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2nd play failed. #10

Closed
dream7180 opened this issue Jul 1, 2022 · 7 comments
Closed

2nd play failed. #10

dream7180 opened this issue Jul 1, 2022 · 7 comments
Assignees

Comments

@dream7180
Copy link

(1.0.7)Use app to play video, first time is OK. After stop playing, any play action receives no response -- failed.
Below may be the err log:

[mpvremote] unhandledRejection {"errcode":3,"verbose":"ipcCommand invalid","method":"command()","arguments":[3902.19,"absolute","exact"],"errmessage":"error running command","stackTrace":"Error\n at ErrorHandler.errorMessage (/usr/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/error.js:79:18)\n at ipcRequest.reject (/usr/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/ipcInterface/ipcRequest.js:41:33)\n at /usr/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/ipcInterface/_events.js:69:48\n at Array.forEach ()\n at ipcInterface.dataHandler (/usr/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/ipcInterface/_events.js:53:12)\n at Socket. (/usr/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/ipcInterface/ipcInterface.js:160:43)\n at Socket.emit (node:events:537:28)\n at addChunk (node:internal/streams/readable:324:12)\n at readableAddChunk (node:internal/streams/readable:297:9)\n at Readable.push (node:internal/streams/readable:234:10)"}

@husudosu
Copy link
Owner

husudosu commented Jul 2, 2022

Thanks for the issue I'll investigate it.
What's your MPV version?

@husudosu husudosu self-assigned this Jul 2, 2022
@dream7180
Copy link
Author

Arch Linux, mpv 0.34.1-dirty, nodejs 18.4.0, npm 8.10.0

@dream7180
Copy link
Author

Today updated to npm 8.11.0, first play also not work now. Err msg as below (same as above):
[mpvremote] unhandledRejection {"errcode":3,"verbose":"ipcCommand invalid","method":"command()","arguments":[3862.75,"absolute","exact"],"errmessage":"error running command","stackTrace":"Error\n at ErrorHandler.errorMessage (/usr/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/error.js:79:18)\n at ipcRequest.reject (/usr/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/ipcInterface/ipcRequest.js:41:33)\n at /usr/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/ipcInterface/_events.js:69:48\n at Array.forEach ()\n at ipcInterface.dataHandler (/usr/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/ipcInterface/_events.js:53:12)\n at Socket. (/usr/lib/node_modules/mpv-remote/node_modules/node-mpv/lib/ipcInterface/ipcInterface.js:160:43)\n at Socket.emit (node:events:537:28)\n at addChunk (node:internal/streams/readable:324:12)\n at readableAddChunk (node:internal/streams/readable:297:9)\n at Readable.push (node:internal/streams/readable:234:10)"}

@husudosu
Copy link
Owner

husudosu commented Jul 4, 2022

I can't reproduce this behavior. By some reasons when you try to open second file/URL it's trying to seek the video to 3862.75 position and it's fails because your video probably shorter than 3862.75 seconds.
Do you open file with file browser or opening URL when you get this error?

Maybe try to disable watchlist handling. You can disable it by changing mpvremote-uselocaldb to 0 on your ~/.config/mpv/script-opts/mpvremote.conf and restart MPV

@husudosu
Copy link
Owner

husudosu commented Jul 4, 2022

I found out about this is a bug on node-mpv. When you try to seek unloaded file it fails. The PR request it's not made yet.
j-holub/Node-MPV#89
I'll try to do a PR request and report back.

@dream7180
Copy link
Author

dream7180 commented Jul 4, 2022

Believe not the problem of videos. The failure occurs to any video, not one of them.
I'm traveling outside for about one month and not able to test any update. Will try after returning. Good luck and thanks.

@dream7180
Copy link
Author

will discuss in a new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants