<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.11">
<TITLE>OnDemandServerMediaSubSession</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I wrote my own class "MySource", derived from FramedSource, for getting an H263 video source from a (TCP) socket.</FONT>
<BR><FONT SIZE=2 FACE="Arial">I am able to use this class within an RTSP Server using "PassiveServerMediaSubsession" to stream over a multicast address and play the video stream with mplayer.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Now, I am trying to write kind of a MyServerMediaSubsession, derived from OnDemandServerMediaSubsession, but without success until now.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I overloaded the createNewRTPSink(), createNewStreamSource() and getStreamParameters() methods. In the latter, I am only setting the destination (multicast) address:</FONT></P>
<P> <FONT SIZE=2 FACE="Arial">destinationAddress = our_inet_addr("232.179.248.180");</FONT>
<BR> <FONT SIZE=2 FACE="Arial">OnDemandServerMediaSubsession::getStreamParameters(...);</FONT>
<BR> <FONT SIZE=2 FACE="Arial">isMulticast = true;</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">. When I open the URL (with mplayer or openRTSP), I can see that the 3 functions are getting called, and then doGetNextFrame() is also getting called. The client (openRTSP) can connect to the RTSP server, but does not get any byte. What I am doing wrong?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">. Is it basicaly possible to write an OnDemandServer to stream on a multicast address?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">. Supposing the server will function correctly to start streaming on demand. How does it know when all client connections are closed (remember I'm streaming on multicast), so that it can stop streaming?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Best regards,</FONT>
<BR><FONT SIZE=2 FACE="Arial">Fabrice Aeschbacher</FONT>
<BR><FONT FACE="Arial"> </FONT>
</P>
<BR>
</BODY>
</HTML>