On 6/29/2015 2:38 AM, Daasoundz DJ wrote:
Le vendredi 26 juin 2015 17:21:11 UTC+2, Byron Campen a écrit :
You can also rewrite the local SDP to alter the priority.

It's an idiot question but ... how can I rewrite the local SDP ? and/or where 
do I find it ?

After you get the offer (from createOffer) or receive it (from the other end), 
modify the m=audio line in offer.sdp to put the payload number in the a=rtpmap 
line for G722 before all other audio codecs.

i.e.
...
m=audio <number> <transport> <list of payload values>
...
a=rtpmap:<payload> G722/8000/1 (note: the /1 is optional)
<other a=rtpmap's>

You want <payload> to be the first in the list of payload values in the m=audio 
line.

It's all just (careful) string manipulation.  Don't assume any particular number will 
be used for <payload>!

--
Randell Jesup, Mozilla

_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to