On 3/10/2014 2:01 PM, Thanasis Polychronakis wrote:
Hi List,
For a connectivity detection app (www.check-connectivity.com) i am working on i
need to start the ICE operation on Firefox without asking for Camera or Mic
permission from the user. I can do that in Chrome and thus successfully
determine UDP/TCP connectivity of the client...
But i cannot do the same on firefox... When i perform a "RTCPeerConnection.createOffer()"
on Firefox it will error with: "Cannot create SDP without any streams.".
You can test connectivity with no user UI ping by calling
pc.createDataChannel({}) before createOffer(). That should work in both
FF and Chrome. You could also take a MediaStream that doesn't come from
getUserMedia (though there are some issues there), such as from Web
Audio. (FF but not Chrome has stream =
media_element.mozCaptureStreamUntilEnded();)
If you have no streams of any type (including datachannels), there are
no candidates to gather.... This may be a bug in Chrome.
--
Randell Jesup, Mozilla
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media