mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Detect call type by examining the SDP always rather than just in Firefox as it seems Chrome's behaviour is the odd one out here.
This commit is contained in:
parent
4b256cab31
commit
1a62f1299d
@ -175,7 +175,8 @@ angular.module('MatrixCall', [])
|
|||||||
this.state = 'ringing';
|
this.state = 'ringing';
|
||||||
this.direction = 'inbound';
|
this.direction = 'inbound';
|
||||||
|
|
||||||
if (window.mozRTCPeerConnection) {
|
// This also applied to the Safari OpenWebRTC extension so let's just do this all the time at least for now
|
||||||
|
//if (window.mozRTCPeerConnection) {
|
||||||
// firefox's RTCPeerConnection doesn't add streams until it starts getting media on them
|
// firefox's RTCPeerConnection doesn't add streams until it starts getting media on them
|
||||||
// so we need to figure out whether a video channel has been offered by ourselves.
|
// so we need to figure out whether a video channel has been offered by ourselves.
|
||||||
if (this.msg.offer.sdp.indexOf('m=video') > -1) {
|
if (this.msg.offer.sdp.indexOf('m=video') > -1) {
|
||||||
@ -183,7 +184,7 @@ angular.module('MatrixCall', [])
|
|||||||
} else {
|
} else {
|
||||||
this.type = 'voice';
|
this.type = 'voice';
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user