mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 21:44:51 +00:00
this is why we can't have nice things.... C'mon chrome and mozilla its not that hard to both do the same spec
This commit is contained in:
parent
41bfc18a10
commit
9ca115cf05
@ -93,10 +93,22 @@
|
|||||||
candidateList: []
|
candidateList: []
|
||||||
};
|
};
|
||||||
|
|
||||||
this.constraints = {
|
|
||||||
offerToReceiveAudio: true,
|
if (moz) {
|
||||||
offerToReceiveVideo: this.options.useVideo ? true : false,
|
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) {
|
if (self.options.useVideo) {
|
||||||
self.options.useVideo.style.display = 'none';
|
self.options.useVideo.style.display = 'none';
|
||||||
@ -111,10 +123,18 @@
|
|||||||
|
|
||||||
if (obj) {
|
if (obj) {
|
||||||
self.options.useVideo = obj;
|
self.options.useVideo = obj;
|
||||||
self.constraints.offerToReceiveVideo = true;
|
if (moz) {
|
||||||
|
self.constraints.offerToReceiveVideo = true;
|
||||||
|
} else {
|
||||||
|
self.constraints.mandatory.OfferToReceiveVideo = true;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
self.options.useVideo = null;
|
self.options.useVideo = null;
|
||||||
self.constraints.offerToReceiveVideo = false;
|
if (moz) {
|
||||||
|
self.constraints.offerToReceiveVideo = false;
|
||||||
|
} else {
|
||||||
|
self.constraints.mandatory.OfferToReceiveVideo = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self.options.useVideo) {
|
if (self.options.useVideo) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user