Jump to content

Cipactli

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Cipactli

  1. Hello rootx Thanks for the reply, but i cant use that since there is nothing to read, no console window. mpv.exe (files) should be placed in script directory for code snippet to work. --wid=<ID> On win32, the ID is interpreted as HWND. Pass it as value cast to intptr_t. mpv will create its own window, and set the wid window as parent, like with X11.
  2. Have anybody succesfully played around with libmpv for mpv player to embed the player in gui ? Example of child gui. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Local $hGui, $mpv_pid Local $sStream = "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4" $hGui = GUICreate("MPV Test", 640, 360, -1, -1) GUISetState(@SW_SHOW) $mpv_pid = Run(@ScriptDir & '\mpv.exe --wid="' & $hGui & '" "' & $sStream & '"') While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd MPV Player and Libmpv can be downloaded at https://mpv.srsfckn.biz/ Best Regards -C
×
×
  • Create New...