<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite">Thank you for the clarification. I will try to send this extra data as first packet. I have another confusion. if i send this packet as first packet when there was no client attached to it and later on client attached to it than how will that client get this packet</blockquote><div><br></div>As long as you deliver this extra data as the first frame - when you do your first delivery - then it will get remembered (as special 'configuration data') by the downstream "MPEG4VideoStreamDiscreteFramer" object.  No problem.</div><div><br></div><div>I assume that your "ServerMediaSubsession" subclass (for your RTSP server) is similar to the code for "MPEG4VideoFileServerMediaSubsession", in that you are implementing not only the virtual functions "createNewStreamSource()" and "createNewRTPSink()", but also the virtual function "getAuxSDPLine()" (in the same way as is done in "MPEG4VideoFileServerMediaSubsession.cpp").<br><br><br><blockquote type="cite"> Right now the way I am using FrameSource is:<br><br>/****************************************************************/<br>void MyStreamingDeviceSource::streamPacket(AVPacket pkt)<br>{<br><span class="Apple-tab-span" style="white-space:pre"> </span>m_queue.putPacket(&pkt);<br><span class="Apple-tab-span" style="white-space:pre">      </span>envir().taskScheduler().triggerEvent(m_eventID, this);<br>}<br>/***************************************************************/<br><br>so it does not matter if a client is attached or not I keep on sending the data to network.<br></blockquote><div><br></div></div>OK, so you'll need to add this line to the start of your "deliverFrame()" function:<div><br><div><span class="Apple-tab-span" style="white-space:pre">  </span>if (!isCurrentlyAwaitingData()) return; // we're not ready for the data yet</div><div><br></div><div>(see the example in "DeviceSource.cpp")</div></div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>