I use PrintWriter in doGet method, like this:
PrintWriter stream = response.getWriter();
and I check it for errors:
while(!stream..checkError()){
stream.println(....);
...
}
stream.close();
This method is not very fast becouse strem.checkError() is not returning
true immediatly after U close browswer .
So, in Destroy() method of my applet (as I said I use applet as client) I
call another servlet, wich "tell" to first one to close the stream.
Bogdan Sava
Farzad Yazdi wrote:
> Thanks for your reply but how do we get the servlet to stream out data
> indefinitly to the client until told to stop? As it is I cannot work out a
> mechanism for it. Any ideas?
>
> ----- Original Message -----
> From: "bogdan sava" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 17, 2001 11:56 AM
> Subject: Re: streaming video from a servlet to an IE browser using jmf
>
> > U need applet on client side, to handle data stream from the servlet !
> >
> > Yazdi Farzad wrote:
> >
> > > hi, we are developing a video application using Sun's JMF and a servlet
> on the server side and pure html on the client. What we're trying to do is
> use a servlet to receive video from a network broadcast and present it to
> the user's browser. What I want to know is whether the servlet can send out
> streaming video that it's picking up from the network, in reply to a single
> request coming from the user?
> > >
> > > Can a servlet create and send out data as it creates it and carry on
> until told to stop by the client? If someone could shine some light on this
> or suggest a site/sample code I'd be most grateful.
> > >
> > > Best regards
> > >
> > >
> ___________________________________________________________________________
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources: http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> >
> ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html