Browse Source

add property isLocal to JitsiTrack

master
isymchych 10 years ago
parent
commit
1f69ab8d18
3 changed files with 8 additions and 4 deletions
  1. 4
    2
      lib-jitsi-meet.js
  2. 1
    0
      modules/RTC/JitsiLocalTrack.js
  3. 3
    2
      modules/RTC/JitsiRemoteTrack.js

+ 4
- 2
lib-jitsi-meet.js View File

1341
     this.dontFireRemoveEvent = false;
1341
     this.dontFireRemoveEvent = false;
1342
     this.resolution = resolution;
1342
     this.resolution = resolution;
1343
     this.startMuted = false;
1343
     this.startMuted = false;
1344
+    this.isLocal = true;
1344
     var self = this;
1345
     var self = this;
1345
     JitsiTrack.call(this, null, stream,
1346
     JitsiTrack.call(this, null, stream,
1346
         function () {
1347
         function () {
1511
     this.videoType = data.videoType;
1512
     this.videoType = data.videoType;
1512
     this.ssrc = ssrc;
1513
     this.ssrc = ssrc;
1513
     this.muted = false;
1514
     this.muted = false;
1515
+    this.isLocal = false;
1514
     if((this.type === JitsiTrack.AUDIO && data.audiomuted)
1516
     if((this.type === JitsiTrack.AUDIO && data.audiomuted)
1515
       || (this.type === JitsiTrack.VIDEO && data.videomuted)) {
1517
       || (this.type === JitsiTrack.VIDEO && data.videomuted)) {
1516
         this.muted = true;
1518
         this.muted = true;
1536
  */
1538
  */
1537
 JitsiRemoteTrack.prototype.isMuted = function () {
1539
 JitsiRemoteTrack.prototype.isMuted = function () {
1538
     return this.muted;
1540
     return this.muted;
1539
-}
1541
+};
1540
 
1542
 
1541
 /**
1543
 /**
1542
  * Returns the participant id which owns the track.
1544
  * Returns the participant id which owns the track.
1551
  */
1553
  */
1552
 JitsiRemoteTrack.prototype.isLocal = function () {
1554
 JitsiRemoteTrack.prototype.isLocal = function () {
1553
     return false;
1555
     return false;
1554
-}
1556
+};
1555
 
1557
 
1556
 delete JitsiRemoteTrack.prototype.stop;
1558
 delete JitsiRemoteTrack.prototype.stop;
1557
 
1559
 

+ 1
- 0
modules/RTC/JitsiLocalTrack.js View File

14
     this.dontFireRemoveEvent = false;
14
     this.dontFireRemoveEvent = false;
15
     this.resolution = resolution;
15
     this.resolution = resolution;
16
     this.startMuted = false;
16
     this.startMuted = false;
17
+    this.isLocal = true;
17
     var self = this;
18
     var self = this;
18
     JitsiTrack.call(this, null, stream,
19
     JitsiTrack.call(this, null, stream,
19
         function () {
20
         function () {

+ 3
- 2
modules/RTC/JitsiRemoteTrack.js View File

22
     this.videoType = data.videoType;
22
     this.videoType = data.videoType;
23
     this.ssrc = ssrc;
23
     this.ssrc = ssrc;
24
     this.muted = false;
24
     this.muted = false;
25
+    this.isLocal = false;
25
     if((this.type === JitsiTrack.AUDIO && data.audiomuted)
26
     if((this.type === JitsiTrack.AUDIO && data.audiomuted)
26
       || (this.type === JitsiTrack.VIDEO && data.videomuted)) {
27
       || (this.type === JitsiTrack.VIDEO && data.videomuted)) {
27
         this.muted = true;
28
         this.muted = true;
47
  */
48
  */
48
 JitsiRemoteTrack.prototype.isMuted = function () {
49
 JitsiRemoteTrack.prototype.isMuted = function () {
49
     return this.muted;
50
     return this.muted;
50
-}
51
+};
51
 
52
 
52
 /**
53
 /**
53
  * Returns the participant id which owns the track.
54
  * Returns the participant id which owns the track.
62
  */
63
  */
63
 JitsiRemoteTrack.prototype.isLocal = function () {
64
 JitsiRemoteTrack.prototype.isLocal = function () {
64
     return false;
65
     return false;
65
-}
66
+};
66
 
67
 
67
 delete JitsiRemoteTrack.prototype.stop;
68
 delete JitsiRemoteTrack.prototype.stop;
68
 
69
 

Loading…
Cancel
Save