Browse Source

Comment out unused method

master
paweldomas 9 years ago
parent
commit
e72d0df947
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      modules/RTC/RTC.js

+ 9
- 1
modules/RTC/RTC.js View File

341
 RTC.prototype.dispose = function() {
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
 RTC.prototype.switchVideoTracks = function (newStream) {
352
 RTC.prototype.switchVideoTracks = function (newStream) {
345
     this.localVideo.stream = newStream;
353
     this.localVideo.stream = newStream;
346
 
354
 
350
     if (this.localAudio.getOriginalStream() != newStream)
358
     if (this.localAudio.getOriginalStream() != newStream)
351
         this.localTracks.push(this.localAudio);
359
         this.localTracks.push(this.localAudio);
352
     this.localTracks.push(this.localVideo);
360
     this.localTracks.push(this.localVideo);
353
-};
361
+};*/
354
 
362
 
355
 RTC.prototype.setAudioLevel = function (resource, audioLevel) {
363
 RTC.prototype.setAudioLevel = function (resource, audioLevel) {
356
     if(!resource)
364
     if(!resource)

Loading…
Cancel
Save