Playing a http stream stops on socket connection close
Posted: 15 Mar 2008 10:33
Hi,
I have a problem listening to a HTTP-stream with VLC. The HTTP-stream is created by a Java server application that encodes an audio-file and
immediately sends the accumulating encoded data to the http connection.
Now the encoding and the sending of the data finishes earlier (like 10 seconds) than the playing VLC reaches the end of the stream, and the server is
closing the connection because there is no data to send anymore. VLC must buffer the remaining data to play, because the connection is in blocked mode
and data is only sent when it is actually read.
The problem now is, that VLC stops playing immediately when the server connection is closed (main error: recv failed (10054)), instead of noticing that
there is no data available anymore and playing the remaining buffered data.
I think this is a problem of VLC, because I tried to play the stream with Winamp and Windows Media Player, and had no problems.
Nothing I tried worked out yet and I also found no setting for VLC to solve this, so any comments about this problem are welcome.
Thanks in advance.
DsChAeK
I have a problem listening to a HTTP-stream with VLC. The HTTP-stream is created by a Java server application that encodes an audio-file and
immediately sends the accumulating encoded data to the http connection.
Now the encoding and the sending of the data finishes earlier (like 10 seconds) than the playing VLC reaches the end of the stream, and the server is
closing the connection because there is no data to send anymore. VLC must buffer the remaining data to play, because the connection is in blocked mode
and data is only sent when it is actually read.
The problem now is, that VLC stops playing immediately when the server connection is closed (main error: recv failed (10054)), instead of noticing that
there is no data available anymore and playing the remaining buffered data.
I think this is a problem of VLC, because I tried to play the stream with Winamp and Windows Media Player, and had no problems.
Nothing I tried worked out yet and I also found no setting for VLC to solve this, so any comments about this problem are welcome.
Thanks in advance.
DsChAeK