Hello
I am trying to embed mpv into an electron browser window using following code:
//get browser window hwnd
const winID = remote.getCurrentWindow().getNativeWindowHandle().hbuf.readInt32LE(0);
const mpv = new mpvAPI({
binary: "C:\Users\UserA\mpv\mpv.exe"
},["--wid=" + winID]);
await mpv.start();
await mpv.load(exePath + "\content\Demo.mp4");
console.log(await mpv.getDuration());
When i run the electron app, i don't see the video. The mpv instance seem to have started as i get the duration value in the console.
if i remomve --wid option then i can see the video window.
can any expert throw light on this issue?
thanks
rex