提交 9ca115cf authored 作者: Anthony Minessale's avatar Anthony Minessale

this is why we can't have nice things.... C'mon chrome and mozilla its not that…

this is why we can't have nice things.... C'mon chrome and mozilla its not that hard to both do the same spec
上级 41bfc18a
......@@ -93,10 +93,22 @@
candidateList: []
};
this.constraints = {
offerToReceiveAudio: true,
offerToReceiveVideo: this.options.useVideo ? true : false,
};
if (moz) {
this.constraints = {
offerToReceiveAudio: true,
offerToReceiveVideo: this.options.useVideo ? true : false,
};
} else {
this.constraints = {
optional: [{
'DtlsSrtpKeyAgreement': 'true'
}],mandatory: {
OfferToReceiveAudio: true,
OfferToReceiveVideo: this.options.useVideo ? true : false,
}
};
}
if (self.options.useVideo) {
self.options.useVideo.style.display = 'none';
......@@ -111,10 +123,18 @@
if (obj) {
self.options.useVideo = obj;
self.constraints.offerToReceiveVideo = true;
if (moz) {
self.constraints.offerToReceiveVideo = true;
} else {
self.constraints.mandatory.OfferToReceiveVideo = true;
}
} else {
self.options.useVideo = null;
self.constraints.offerToReceiveVideo = false;
if (moz) {
self.constraints.offerToReceiveVideo = false;
} else {
self.constraints.mandatory.OfferToReceiveVideo = false;
}
}
if (self.options.useVideo) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论