Re: onaddstream not called if {offerToReceiveVideo : true} and stream with no video added
On 5/14/14, 11:06 AM, ushunmu...@gmail.com wrote: Martin - I think you are talking about bug #998546. In my asymmetric call case, however, onaddstream never fires. As described in comment #2 in bug #998546 onaddstream never fires if no audio or video tracks are specified. My guess is that your problem is related. Nils ___ dev-media mailing list dev-media@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-media
Re: onaddstream not called if {offerToReceiveVideo : true} and stream with no video added
Martin - I think you are talking about bug #998546. In my asymmetric call case, however, onaddstream never fires. ___ dev-media mailing list dev-media@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-media
Re: onaddstream not called if {offerToReceiveVideo : true} and stream with no video added
On 2014-05-14, at 08:39, Brent Gracey wrote: > The setRemoteDescription callback is firing and pc.getRemoteStreams()[0] is > returning a stream, so I think I'll be able to use the work around Note that there is an open bug regarding the onaddstream event firing too late in Firefox. You should eventually get the event, but not before the setRemoteDescription callback. ___ dev-media mailing list dev-media@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-media
Re: onaddstream not called if {offerToReceiveVideo : true} and stream with no video added
ah ha! nice The setRemoteDescription callback is firing and pc.getRemoteStreams()[0] is returning a stream, so I think I'll be able to use the work around Thanks for the pointers ___ dev-media mailing list dev-media@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-media
Re: onaddstream not called if {offerToReceiveVideo : true} and stream with no video added
Given, RTCPeerConnection object is "pc", you could get the remote stream as follows: pc.getRemoteStreams()[0]. I suppose that there is a chance this value could be null if the stream isn't available. ___ dev-media mailing list dev-media@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-media
Re: onaddstream not called if {offerToReceiveVideo : true} and stream with no video added
Thanks for your suggestion Uma. Could you share how you get the remote stream on the setRemoteDescription success callback? The callback doesn't get passed any parameters, and I can't see a way to create a mediaStream from a SDP (those where the two ways that I though might be an option) I was trying a different work around. Through my signalling channel, I am sharing which peers have video / audio, and setting OfferToReceive... based on if the peer was able to broadcast video / audio. This helped between two Firefox clients, where both had audio on and video off. I've tried to test each possible setup between chrome <-> chrome, firefox <->firefox, and chrome <-> firefox, with audio always on, and switching video on / off and am finding issues as below. # Caller Callee Works? a Chrome (no video) Chrome (no video) works bi Chrome (video) Chrome (no video)works bii Chrome (no video) Chrome (video) works ci FF (no video) FF (no video) works - with "dynamic" OfferToReceive di FF (no video) FF (video) does not work; dii FF (video) FF (no video) works ei Chrome (video) ff (video) works eii ff (video) Chrome (video) works fi Chrome (no video) FF (video) does not work; fii FF (video) Chrome (no video) does not work; gi Chrome (video) FF (no video) works gii FF (no video) Chrome (video) works hi Chrome (no video) ff (no video) works hii ff (no video) Chrome (no video) works ___ dev-media mailing list dev-media@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-media