mpv.js
mpv.js copied to clipboard
"failed to initialize mpv GL context" since chromium 89 (electron 13.0.0 or nw 0.52.0)
There have some windows 11 computers cannot load mpv.js since chromium 89 (electron 13.0.0 or nw 0.52.0), the error message is :
[libmpv_render] glGetString(GL_VERSION) returned NULL.
[libmpv_render] OpenGL not initialized.
[cplayer] failed to initialize mpv GL context
I tried the newest mpv-1.dll library, and recompiled mpv.node, but I got the same error. I also tried mpv-2.dll, and got the following error:
[12948:0712/085649.515:ERROR:ppapi_thread.cc(271)] Failed to load Pepper module from mpvjs.node (error: 126)
I tried every chromium-args that related to gpu, and finally I find one can solve this problem, --use-gpu-in-tests
How did you get electron 13 to work? Electron 12+ for me just returns "Couldn't load plugin."
I get the same error @nonesand how did you passed "--use-gpu-in-tests"? Actually i cannot start it at all
@drakonkat app.commandLine.appendSwitch("use-gpu-in-tests");