Page 1 of 1

.Net - How to get command acknowledgements or updates?

Posted: 07 Feb 2008 20:08
by anolae
Hello,

I am building a .Net application that aims to be a video player and library, with playback functionnalities based on VLC. I decided to use the .Net interface provided by Tappen (many thanks to him for it) as I read that it has more functionnalities than the ActiveX control.

Yet, I am running into some issues. I would like to synchronise my GUI with VLC status (playlist content, playback progress, volume...), but I am not sure how to do that. I understood that there can be no direct acknowledgement to command as VLC is asynchronous; as far as I can see, there is no event raised. One way would be to query the status every second for instance but it does not seem to me as a light and nice way to work.

Am I missing something? Can someone help me?

Thanks in advance !

Re: .Net - How to get command acknowledgements or updates?

Posted: 14 Feb 2008 16:48
by badubo
For this purpose, I tested to add the rc interface when initializing the library (with extrainf and rchost parameters).
With this, you can open a socket and get informations about status and use it as a c# event.
It works.... except that the application crashes each time it reach the end of the second movie send (never find why...).