<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><div dir="ltr" align="left"><span class="141323108-01112011"><font color="#005080" face="Trebuchet MS">I have already created my own ServerMediaSubsession
subclasses for my application. One for PCM and one for MP3. By doing
this, the listener is able to see if it is receiving a PCM stream or a MP3
stream and play it correctly. The problem however is that I need to send
attributes along, for example the bits, frequency and channels of the PCM sample
so that the listener knows how to play it. The bits, frequency and
channels can be changed on the streamer side and this is the information that I
want in the SDPDescription or any other appropriate place.</font></span></div></div></blockquote><div><br></div></div>The sampling frequency and number of channels will sometimes appear in the SDP description (in the a=rtpmap: line), if the RTP payload type is dynamic. If the RTP payload type is static, however, then these parameters are implied. For example, payload type 10 is defined to mean 44100 Hz 2-channel PCM (16-bit) audio.<div><br></div><div>I agree, however, that this won't be enough for you, because you want this information to always appear explicitly in the SDP description. What you can do, however, is create a string - describing the stream's parameters - and pass it as either the "info" or the "description" parameter to "ServerMediaSession::createNew()". Then, this string will automatically appear in the SDP description, as the "i=" or the "s=" line, respectively.</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>