-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Using nwjs #78
Comments
See this: #76 (comment) for building the latest mpv.js compatible with the latest mpv dll. (You have to follow the build steps in the mpv.js README first to setup the environment). This might be fixed sometime, but I'm leaving this here to know that the latest mpv libraries weren't compatible with mpv.js at the time of this comment. In nw.js you need to register the pepper plugin in your package.json. "chromium-args": "--register-pepper-plugins='./node_modules/mpv.js/build/Release/mpvjs.node;application/x-mpvjs'" Then in your program you use it:
There's a lot of various mpv settings for different scenarios. (Like turning on subtitles). You can also setup a socket and listen for logs from mpv. |
Not so much an issue, more a how to, I would like to use mpv.js with nwjs but I can find no examples or explanation on how to do this, examples seem to always use electron. There was a non react example in the issues but it just produced a "plugin not supported" error Any help appreciated
Thanks
The text was updated successfully, but these errors were encountered: