How to provide streaming in J2EE web application?

Hi Friends,

I want to build web application which will provide streaming of data.

This data may be in raw data, binary, files, audio, video etc. As we are using HTTP protocol for web application, then how to do streaming between server and client using HTTP protocol i.e in request response manner.

Any help will be appreciated.

Thanks

[367 byte] By [vikaskhengarea] at [2007-11-27 4:47:52]
# 1

AN I/O stream is just that - a stream.

What you are asking is, how to multiplex or rate-limit streams to a certain bit-rate (quality).

1. Use threads, 1 for each user connection to a specific data (or media) target.

2. Write only n-bytes, then sleep the thread carrying the transport over to the client.

You can also create a transport buffer and pool requests for the same data (media) target and optimize the transmit buffer and bit-rate.

Remember - the bit-rate is going to determine quality. Either frame-rate for video, or frequency for audio streams. There is minimum bit-rate for people.

watertownjordana at 2007-7-12 10:00:38 > top of Java-index,Java Essentials,New To Java...