|
|
@@ -70,7 +70,6 @@ function JitsiTrack(rtc, stream, track, streamInactiveHandler, trackMediaType,
|
|
70
|
70
|
this.type = trackMediaType;
|
|
71
|
71
|
this.track = track;
|
|
72
|
72
|
this.videoType = videoType;
|
|
73
|
|
- this.disposed = false;
|
|
74
|
73
|
|
|
75
|
74
|
if(stream) {
|
|
76
|
75
|
if (RTCBrowserType.isFirefox()) {
|
|
|
@@ -78,13 +77,6 @@ function JitsiTrack(rtc, stream, track, streamInactiveHandler, trackMediaType,
|
|
78
|
77
|
}
|
|
79
|
78
|
addMediaStreamInactiveHandler(stream, streamInactiveHandler);
|
|
80
|
79
|
}
|
|
81
|
|
-
|
|
82
|
|
- this._onAudioOutputDeviceChanged = this.setAudioOutput.bind(this);
|
|
83
|
|
-
|
|
84
|
|
- if (this.isAudioTrack()) {
|
|
85
|
|
- RTCUtils.addListener(RTCEvents.AUDIO_OUTPUT_DEVICE_CHANGED,
|
|
86
|
|
- this._onAudioOutputDeviceChanged);
|
|
87
|
|
- }
|
|
88
|
80
|
}
|
|
89
|
81
|
|
|
90
|
82
|
/**
|
|
|
@@ -225,12 +217,9 @@ JitsiTrack.prototype.detach = function (container) {
|
|
225
|
217
|
|
|
226
|
218
|
/**
|
|
227
|
219
|
* Dispose sending the media track. And removes it from the HTML.
|
|
|
220
|
+ * NOTE: Works for local tracks only.
|
|
228
|
221
|
*/
|
|
229
|
222
|
JitsiTrack.prototype.dispose = function () {
|
|
230
|
|
- RTCUtils.removeListener(RTCEvents.AUDIO_OUTPUT_DEVICE_CHANGED,
|
|
231
|
|
- this._onAudioOutputDeviceChanged);
|
|
232
|
|
-
|
|
233
|
|
- this.disposed = true;
|
|
234
|
223
|
};
|
|
235
|
224
|
|
|
236
|
225
|
/**
|