提交 94bb4606 authored 作者: Anthony Minessale's avatar Anthony Minessale

fixes for recent firefox changes

上级 66c425c0
This diff was suppressed by a .gitattributes entry.
...@@ -484,7 +484,11 @@ ...@@ -484,7 +484,11 @@
} }
if (options.type == "offer") { if (options.type == "offer") {
if (!moz && !x && options.onICESDP) { /* new mozilla now tries to be like chrome but it takes them 10 seconds to complete the ICE
Booooooooo! This trickle thing is a waste of time...... We'll all have to re-code our engines
to handle partial setups to maybe save 100m
*/
if ((!moz || peer.localDescription.sdp.match(/a=candidate/)) && !x && options.onICESDP) {
options.onICESDP(peer.localDescription); options.onICESDP(peer.localDescription);
//x = 1; //x = 1;
/* /*
...@@ -549,7 +553,10 @@ ...@@ -549,7 +553,10 @@
mandatory: { mandatory: {
OfferToReceiveAudio: true, OfferToReceiveAudio: true,
OfferToReceiveVideo: true OfferToReceiveVideo: true
} },
/* spec is changed support both ways at once */
offerToReceiveAudio: true,
offerToReceiveVideo: true
}; };
// onOfferSDP(RTCSessionDescription) // onOfferSDP(RTCSessionDescription)
...@@ -560,7 +567,8 @@ ...@@ -560,7 +567,8 @@
sessionDescription.sdp = serializeSdp(sessionDescription.sdp); sessionDescription.sdp = serializeSdp(sessionDescription.sdp);
peer.setLocalDescription(sessionDescription); peer.setLocalDescription(sessionDescription);
options.onOfferSDP(sessionDescription); options.onOfferSDP(sessionDescription);
if (moz && options.onICESDP) { /* old mozilla behaviour the SDP was already great right away */
if (moz && options.onICESDP && sessionDescription.match(/a=candidate/)) {
options.onICESDP(sessionDescription); options.onICESDP(sessionDescription);
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论