I’m trying to port a GTK-based Linux app to Mac OS-X. I have the GUI working OK but now I need to create a Widget which embeds MPlayer.
I should be able to use the -wid option of MPlayer to embed it in my app but I need to find the Window ID. Does anyone know how to find the window ID of a GTK Widget or Container on OS-X ?
Are you using GTK with the X11 or Quartz backend? If X11, I imagine it should work just as on Linux. Otherwise I don’t think you can do what you’re trying to do, MPlayer wants a X11 window ID, and you’re not using X11 at all.