I'm looking for similar information. Is there an API where the messages have been defined? I'd need this for my HTPC project to make it support VLC.The driver use the windows messages to communicate to the programs it controls. You get the window handle and you deliver a message with PostMessage(handle, message, prm1, prm2). The example provided is of winamp frontend/plug-in control API c file that provides the nessasery constants messages so you know how to control winamp.
I have looked at the VLC API and i've got messed up.
http://videolan.org/doc/ in the play howtoHello,
BTW, where could I find proper documentation on what information can be retrieved via the http interface. For examle, I can find a lot of necessary information from info.html (eg. channels).
Actually that page does not give me the information I'm looking for. Try to run VLC with the http interface. There is a default web page to use with a couple of buttons, playlist and a link to the info.html page. When you click on that, you get more information on streams; for example amount of audio channels.http://videolan.org/doc/ in the play howtoHello,
BTW, where could I find proper documentation on what information can be retrieved via the http interface. For examle, I can find a lot of necessary information from info.html (eg. channels).
I looked in to the code and it seems that such variable is not available. Oh well, I'll parse the info.html in order to get the information.i would try "audio-channels". if that doesn't work, i doubt that there is an easy method to retreive that info.
Correct. Sorry for my bad explanation. The plugin just don't give the possibility to ask for it separately.audio-channel is available in vlc core. I just don't know if the plugin has access to it
Still nice to see that you are working on this mokdevel
You could do it that way. I've done it by sending 'hotkeys' which I read from the vlcrc file. Then you don't have to worry about the buttons. Actually you don't even need to worry about the GUI as you could only use http-interface and send the hotkeys to the movie window.I've done something like this before. What you need to do is find the handle of each individual button and send WM_LBUTTONDOWN and WM_LBUTTONUP messages to simulate clicking it. Unfortunately I don't know if VLC uses real buttons or just fakes it by drawing them on the screen...
How do you sending 'hotkeys'? I've been trying to that but without success.You could do it that way. I've done it by sending 'hotkeys' which I read from the vlcrc file. Then you don't have to worry about the buttons. Actually you don't even need to worry about the GUI as you could only use http-interface and send the hotkeys to the movie window.I've done something like this before. What you need to do is find the handle of each individual button and send WM_LBUTTONDOWN and WM_LBUTTONUP messages to simulate clicking it. Unfortunately I don't know if VLC uses real buttons or just fakes it by drawing them on the screen...
This is then only for Windows.How do you sending 'hotkeys'? I've been trying to that but without success.
Umm,Problem with hotkeys, though, is the program needs to know what key does what.
I do my coding in Delphi so I can not give you help on how to do this in VC++. Finding window handles and sending keys to it, it really basic stuff. With basic stuff I mean that there must be others who have had the same problem in VC++. Try google...mokdevel: How do I find the window handle to VLC? And does SendKeys work in Visual C++? And if it works in Visual C++, is there any special libraries I have to include?
Return to “General VLC media player Troubleshooting”
Users browsing this forum: No registered users and 45 guests