|
|
@@ -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)
|