Firefox does not yet support modification of the SDP between createOffer
and setLocal. We first need to figure out what the allowable changes will
be. Hopefully the RTCWeb working group can tell us what should be allowed
here and what should be handled by constraints.
What you want to do however I think can be done with Constraints, something
like { OfferToReceiveVideo: false } in the constraints you send to
createOffer. In the Firefox code under dom/media/test/mochitest are some
.html files that test these constraints that you might want to look at.
-EH
On Thu, Jul 25, 2013 at 3:14 AM, detour <[email protected]> wrote:
> After getting camera as media stream, it is added to peer connection
> (thePc). By createOffer, the offer SDP contains video media and the
> direction is sendrecv (a=sendrecv). For some reason, I want to change it to
> sendonly. The offer SDP is modified, and then does setLocalDescription. In
> successCallback of setLocalDescription, thePc.localDescription is checked,
> but the direction of video media is still sendrecv.
>
> Did I do it in wrong way? Or, Firefox does not support this?
>
> Thanks.
> _______________________________________________
> dev-media mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-media
>
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media