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.

Can we use JMF for J2EE web application? If "Yes", how to do streaming using JMF?

Any help will be appreciated.

Thanks

[455 byte] By [vikaskhengarea] at [2007-11-27 4:47:54]
# 1

> Hi Friends,

>

Hello

> I want to build web application which will provide

> streaming of data.

That磗 right.

> 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.

>

It磗 better using the RTP protocol.

(was made for this data on real time)

(the HTTP uses the TCP and it磗 not so good to realtime aplications)

> Can we use JMF for J2EE web application? If "Yes",

YES

(J2SE)

> how to do streaming using JMF?

Well man,

this works is not so easy is better undestand the architecture .

but is the way.

CREATE THE SOURCE OF DATA

sample :::

MediaLocator ml = new MediaLocator(strAdress);

strAdress = "PROTOCOL://" + "IP"

// file:///c:\mymusics\redhotchilipeppers.mp2

// rtp://192.168.1.203:22800/audio/rhcp

// or still An captured Audio or video for a device

CREATE THE SENDER OF DATA

Processor pro = Manager.createProcessor(ml);

CODEC THE MEDIA FOR A RTP FORMAT

CREATE DATASINK

START THE DATASINK AND THE PROCESSOR.

I wanna say that is not so complete, but is that way...

I made one once time. please attetion to the formats supported by the RTP and the framework JFM, the formats of media (codec,hz,bits, ...) made me almost crazy.

Any doubt we磖e here.

(Search for guide jmf, its a pdf has a many of this)

>

> Any help will be appreciated.

>

> Thanks

We are here to help and be help.

dreampeppers99a at 2007-7-12 10:00:40 > top of Java-index,Security,Cryptography...