<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div dir="ltr" class=""><div class="">what kind od ServerMediaSubsession objects I should use?</div></div></blockquote><div><br class=""></div><div>As with the video stream, you must write your own subclass of “OnDemandServerMediaSubsession”, and implement the “createNewStreamSource()” and “createNewRTPSink()” virtual functions.</div><div><br class=""></div><div>Like the existing “ADTSAudioFileServerMediaSubsession” class, your subclass will implement the “createNewRTPSink()” virtual function by calling “MPEG4GenericRTPSink::createNew()” (see “liveMedia/include/MPEG4GenericRTPSink.hh”), with the following parameters (based on the SDP description that you gave):</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>rtpTimestampFrequency:<span class="Apple-tab-span" style="white-space:pre"> </span>48000</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>sdpMediaTypeString:<span class="Apple-tab-span" style="white-space:pre"> </span>“audio”</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>mpeg4Mode:<span class="Apple-tab-span" style="white-space:pre"> </span>"AAC-hbr”</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>configString:<span class="Apple-tab-span" style="white-space:pre"> </span>“1190”</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>numChannels:<span class="Apple-tab-span" style="white-space:pre"> </span>2</div><div><br class=""></div><div>You must also implement the “createNewStreamSource()” virtual function to deliver one AAC frame at a time from your input source. It’s important that you set “fPresentationTime” properly, if you want the audio to be properly synchronized with the video, once you later combine them in a single “ServerMediaSession”.</div></div><br class=""><br class=""><div apple-content-edited="true" class="">
<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; "><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; ">Ross Finlayson<br class="">Live Networks, Inc.<br class=""><a href="http://www.live555.com/" class="">http://www.live555.com/</a></span></span>
</div>
<br class=""></body></html>