views:

501

answers:

3

How does VLC Media player implement HTTP Streaming?

I am aware that, VLC Media player can be used as a streaming server and also a streaming client.

My requirement is to stream(over HTTP) a proprietary protocol data from the server to clients and I am not comfortable with C/C++ code. I am comfortable with C# and Java. Can somebody point me to example implementations of HTTP Streaming in either C# or Java?

A: 

You can review the VLC source.

A: 

"Streaming" in this context simply means sending a large binary HTTP response to a request. You can get a reference to the output stream in Java by calling HttpServletResponse.getOutputStream. You can then send whatever data you like through the stream.

Rob H
A: 

Java Media Framework (link) provides video streaming. You can implement not only a client but also the server using this API.

If I remember correctly the SDK includes some examples that might help.

jassuncao