Browse Source

Return empty stream lists when there is no internal peer connection.

pull/206/head
Simon Eisenmann 10 years ago
parent
commit
bcc3a86121
  1. 6
      static/js/mediastream/peerconnection.js

6
static/js/mediastream/peerconnection.js

@ -314,12 +314,18 @@ define(['jquery', 'underscore', 'webrtc.adapter'], function($, _) { @@ -314,12 +314,18 @@ define(['jquery', 'underscore', 'webrtc.adapter'], function($, _) {
PeerConnection.prototype.getRemoteStreams = function() {
if (!this.pc) {
return [];
}
return this.pc.getRemoteStreams.apply(this.pc, arguments);
};
PeerConnection.prototype.getLocalStreams = function() {
if (!this.pc) {
return [];
}
return this.pc.getRemoteStreams.apply(this.pc, arguments);
};

Loading…
Cancel
Save