浏览代码

Comment out unused method

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

+ 9
- 1
modules/RTC/RTC.js 查看文件

@@ -341,6 +341,14 @@ RTC.isDesktopSharingEnabled = function () {
341 341
 RTC.prototype.dispose = function() {
342 342
 };
343 343
 
344
+/*
345
+ //FIXME Never used, but probably *should* be used for switching
346
+ //      between camera and screen, but has to be adjusted to work with tracks.
347
+ //      Current when switching to desktop we can see recv-only being advertised
348
+ //      because we do remove and add.
349
+ //
350
+ //      Leaving it commented out, in order to not forget about FF specific
351
+ //      thing
344 352
 RTC.prototype.switchVideoTracks = function (newStream) {
345 353
     this.localVideo.stream = newStream;
346 354
 
@@ -350,7 +358,7 @@ RTC.prototype.switchVideoTracks = function (newStream) {
350 358
     if (this.localAudio.getOriginalStream() != newStream)
351 359
         this.localTracks.push(this.localAudio);
352 360
     this.localTracks.push(this.localVideo);
353
-};
361
+};*/
354 362
 
355 363
 RTC.prototype.setAudioLevel = function (resource, audioLevel) {
356 364
     if(!resource)

正在加载...
取消
保存