|
@@ -1954,7 +1954,9 @@ TraceablePeerConnection.prototype.removeTrack = function(localTrack) {
|
1954
|
1954
|
* was found.
|
1955
|
1955
|
*/
|
1956
|
1956
|
TraceablePeerConnection.prototype.findSenderByKind = function(mediaType) {
|
1957
|
|
- return this.peerconnection.getSenders().find(s => s.track && s.track.kind === mediaType);
|
|
1957
|
+ if (this.peerconnection.getSenders) {
|
|
1958
|
+ return this.peerconnection.getSenders().find(s => s.track && s.track.kind === mediaType);
|
|
1959
|
+ }
|
1958
|
1960
|
};
|
1959
|
1961
|
|
1960
|
1962
|
/**
|
|
@@ -1976,7 +1978,9 @@ TraceablePeerConnection.prototype.findReceiverForTrack = function(track) {
|
1976
|
1978
|
* was found.
|
1977
|
1979
|
*/
|
1978
|
1980
|
TraceablePeerConnection.prototype.findSenderForTrack = function(track) {
|
1979
|
|
- return this.peerconnection.getSenders().find(s => s.track === track);
|
|
1981
|
+ if (this.peerconnection.getSenders) {
|
|
1982
|
+ return this.peerconnection.getSenders().find(s => s.track === track);
|
|
1983
|
+ }
|
1980
|
1984
|
};
|
1981
|
1985
|
|
1982
|
1986
|
/**
|