Browse Source

Fixed wrong attribute name.

Also use cached variable instead of performing attribute lookup.
pull/285/head
Joachim Bauch 9 years ago
parent
commit
f0fbd7b1dc
  1. 4
      static/js/mediastream/peercall.js

4
static/js/mediastream/peercall.js

@ -55,10 +55,10 @@ define(['jquery', 'underscore', 'mediastream/utils', 'mediastream/peerconnection @@ -55,10 +55,10 @@ define(['jquery', 'underscore', 'mediastream/utils', 'mediastream/peerconnection
PeerCall.prototype.getStreamId = function(stream) {
var streamid = stream.id;
var id = this.id + "-" + streamid;
if (!this.stream.hasOwnProperty(streamid) || this.streams[streamid] === stream) {
if (!this.streams.hasOwnProperty(streamid) || this.streams[streamid] === stream) {
this.streams[streamid] = stream;
} else {
console.warn("A different stream is already registered, not replacing", stream, this.streams[stream.id])
console.warn("A different stream is already registered, not replacing", stream, this.streams[streamid])
}
//console.log("Created stream ID", id);
return id;

Loading…
Cancel
Save