updated library
This commit is contained in:
parent
36874c395a
commit
2af591f6d9
4
app.js
4
app.js
|
@ -244,7 +244,7 @@ function initConference(localTracks, connection) {
|
||||||
|
|
||||||
|
|
||||||
room.on(ConferenceEvents.TRACK_ADDED, function (track) {
|
room.on(ConferenceEvents.TRACK_ADDED, function (track) {
|
||||||
if (!track.getParticipantId) { // skip local tracks
|
if (track.isLocal) { // skip local tracks
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.error(
|
console.error(
|
||||||
|
@ -253,7 +253,7 @@ function initConference(localTracks, connection) {
|
||||||
APP.UI.addRemoteStream(track);
|
APP.UI.addRemoteStream(track);
|
||||||
});
|
});
|
||||||
room.on(ConferenceEvents.TRACK_REMOVED, function (track) {
|
room.on(ConferenceEvents.TRACK_REMOVED, function (track) {
|
||||||
if (!track.getParticipantId) { // skip local tracks
|
if (track.isLocal) { // skip local tracks
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1341,6 +1341,7 @@ function JitsiLocalTrack(stream, videoType,
|
||||||
this.dontFireRemoveEvent = false;
|
this.dontFireRemoveEvent = false;
|
||||||
this.resolution = resolution;
|
this.resolution = resolution;
|
||||||
this.startMuted = false;
|
this.startMuted = false;
|
||||||
|
this.isLocal = true;
|
||||||
var self = this;
|
var self = this;
|
||||||
JitsiTrack.call(this, null, stream,
|
JitsiTrack.call(this, null, stream,
|
||||||
function () {
|
function () {
|
||||||
|
@ -1511,6 +1512,7 @@ function JitsiRemoteTrack(RTC, data, sid, ssrc) {
|
||||||
this.videoType = data.videoType;
|
this.videoType = data.videoType;
|
||||||
this.ssrc = ssrc;
|
this.ssrc = ssrc;
|
||||||
this.muted = false;
|
this.muted = false;
|
||||||
|
this.isLocal = false;
|
||||||
if((this.type === JitsiTrack.AUDIO && data.audiomuted)
|
if((this.type === JitsiTrack.AUDIO && data.audiomuted)
|
||||||
|| (this.type === JitsiTrack.VIDEO && data.videomuted)) {
|
|| (this.type === JitsiTrack.VIDEO && data.videomuted)) {
|
||||||
this.muted = true;
|
this.muted = true;
|
||||||
|
@ -1536,7 +1538,7 @@ JitsiRemoteTrack.prototype.setMute = function (value) {
|
||||||
*/
|
*/
|
||||||
JitsiRemoteTrack.prototype.isMuted = function () {
|
JitsiRemoteTrack.prototype.isMuted = function () {
|
||||||
return this.muted;
|
return this.muted;
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the participant id which owns the track.
|
* Returns the participant id which owns the track.
|
||||||
|
@ -1551,7 +1553,7 @@ JitsiRemoteTrack.prototype.getParticipantId = function() {
|
||||||
*/
|
*/
|
||||||
JitsiRemoteTrack.prototype.isLocal = function () {
|
JitsiRemoteTrack.prototype.isLocal = function () {
|
||||||
return false;
|
return false;
|
||||||
}
|
};
|
||||||
|
|
||||||
delete JitsiRemoteTrack.prototype.stop;
|
delete JitsiRemoteTrack.prototype.stop;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue