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

Couldn't load plugin. #14

Closed
chernyshof opened this issue Jun 26, 2017 · 7 comments
Closed

Couldn't load plugin. #14

chernyshof opened this issue Jun 26, 2017 · 7 comments

Comments

@chernyshof
Copy link

I'm trying to run example, but react can't render Player component. It's just say "Couldn't load plugin."
Any ideas how to fix this?

@itshaadi
Copy link
Contributor

same problem on windows 10 just followed example instruction but didn't work.

@jonywtf
Copy link

jonywtf commented Sep 24, 2017

on macos 10.12.6 i can see in terminal:

FIXME: missed GL function glBufferSubData
failed to initialize mpv GL context

@Kagami
Copy link
Owner

Kagami commented Sep 24, 2017

This is fixed in git, I need to make a new release of prebuilt binaries.

@jonywtf
Copy link

jonywtf commented Sep 24, 2017

Thanks! I will try to rebuild from git!

@Kagami
Copy link
Owner

Kagami commented Sep 25, 2017

Please try with latest 0.2.2 release.

@Kagami
Copy link
Owner

Kagami commented Oct 3, 2017

Hope it was fixed.

@Kagami Kagami closed this as completed Oct 3, 2017
@itshaadi
Copy link
Contributor

on windows you should put the corresponding mpv-1.dll next to mpvjs.node. i.e.

lets say you have a build process setup and after the build has finished, your app folder contains the full, runnable application.

app:
│   app.html
│   main.js
│   renderer.js
└───mpv
        mpv-1.dll
        mpvjs.node

and in main.js add this line const pluginDir = path.join(__dirname, 'mpv') instead of const pluginDir = path.join(path.dirname(require.resolve("mpv.js")), "build", "Release")

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

4 participants