浏览代码

Renames a variable.

master
damencho 9 年前
父节点
当前提交
5ccb73a994
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6
    5
      modules/RTC/JitsiLocalTrack.js

+ 6
- 5
modules/RTC/JitsiLocalTrack.js 查看文件

@@ -1,7 +1,7 @@
1 1
 var JitsiTrack = require("./JitsiTrack");
2 2
 var RTCBrowserType = require("./RTCBrowserType");
3 3
 var JitsiTrackEvents = require('../../JitsiTrackEvents');
4
-var RTC = require("./RTCUtils");
4
+var RTCUtils = require("./RTCUtils");
5 5
 
6 6
 /**
7 7
  * Represents a single media track (either audio or video).
@@ -58,7 +58,7 @@ JitsiLocalTrack.prototype._setMute = function (mute) {
58 58
         if (mute) {
59 59
             this.dontFireRemoveEvent = true;
60 60
             this.rtc.room.removeStream(this.stream, function () {});
61
-            RTC.stopMediaStream(this.stream);
61
+            RTCUtils.stopMediaStream(this.stream);
62 62
             if(isAudio)
63 63
                 this.rtc.room.setAudioMute(mute);
64 64
             else
@@ -68,7 +68,7 @@ JitsiLocalTrack.prototype._setMute = function (mute) {
68 68
             //FIXME: Maybe here we should set the SRC for the containers to something
69 69
         } else {
70 70
             var self = this;
71
-            RTC.obtainAudioAndVideoPermissions({
71
+            RTCUtils.obtainAudioAndVideoPermissions({
72 72
                 devices: (isAudio ? ["audio"] : ["video"]),
73 73
                 resolution: self.resolution})
74 74
                 .then(function (streams) {
@@ -87,7 +87,8 @@ JitsiLocalTrack.prototype._setMute = function (mute) {
87 87
 
88 88
                     for(var i = 0; i < self.containers.length; i++)
89 89
                     {
90
-                        RTC.attachMediaStream(self.containers[i], self.stream);
90
+                        RTCUtils.attachMediaStream(
91
+                            self.containers[i], self.stream);
91 92
                     }
92 93
 
93 94
                     self.rtc.room.addStream(stream.stream,
@@ -113,7 +114,7 @@ JitsiLocalTrack.prototype.stop = function () {
113 114
         return;
114 115
     if(this.rtc)
115 116
         this.rtc.room.removeStream(this.stream, function () {});
116
-    RTC.stopMediaStream(this.stream);
117
+    RTCUtils.stopMediaStream(this.stream);
117 118
     this.detach();
118 119
 }
119 120
 

正在加载...
取消
保存