Page 1 of 1

windows http service blocked through VLC

Posted: 02 Nov 2009 07:28
by lav.agrawal
Hi,
I am using VLC in my application for IP Cameras, If any camera is disconnected while playing, there is no reconnection strategy in VLC. So that I was trying to reconnect by stop and play in a while loop with some delay of 10 sec. but the major problem is that my system's http service blocked totally with this stop & play frequently.
(the problem becomes more sensitive when the camera is connected but streams are not available to play.)
http service block means when I am browsing any website or accessing any web page; my IE(Internet Explorer ) displays network disconnect and on diagnosis it says WinSock corrupted and need to reset.
I'm not sure why VLC is corrupting Winsock on frequent start-stop in a loop.
I'm using .Net Interop wrapper and here is sample code

while{
obj_VlcMediaPlayer.Play();
Thread.sleep(10000);
obj_VlcMediaPlayer.Stop();
}

Kindly help me out from this problem.

Thanks
Regards
Lav Agrawal

Re: windows http service blocked through VLC

Posted: 09 Nov 2009 14:02
by thannoy
What happened if you ask VLC to render the stream in a loop?

Code: Select all

vlc streamURL --loop
or

Code: Select all

vlc sreamURL vlc://pause:1 --loop
If it works, VLC will at least not reconnect when everything is going fine, which will lower the number of connexions/disconnexions.