libmpv
Posted: Monday 24th May 2021 4:11pm
Has anyone done anything with mpv / libmpv ?
I've figured out how to get mpv to load into any panel via shell with the following code..
wondered if anyone had tried mpv (or mplayer) library calls or knows how to interface with a player via commandline?
TIA
I've figured out how to get mpv to load into any panel via shell with the following code..
'
Public p As Process
Public hWindow As Window
Public Sub Form_Show()
hWindow = New Window(Panel1) ' Instance a window inside the panel i want the mpv player
hWindow.Expand = True
hWindow.Show
' launch mpv with the new window id
p = Shell "mpv --wid=" & Str(hWindow.Id) & " " & Quote(FileToPlay)
End
Public Sub Form_Close()
If p Then p.Kill
End
But with shell i do not think i can control the playerwondered if anyone had tried mpv (or mplayer) library calls or knows how to interface with a player via commandline?
TIA