|
@@ -187,8 +187,8 @@ function switchVideo() { // eslint-disable-line no-unused-vars
|
187
|
187
|
localTracks[1].dispose();
|
188
|
188
|
localTracks.pop();
|
189
|
189
|
}
|
190
|
|
- JitsiMeetJS.createLocalTracks({devices: isVideo ? ['video'] : ['desktop']}).
|
191
|
|
- then(function(tracks) {
|
|
190
|
+ JitsiMeetJS.createLocalTracks({devices: isVideo ? ['video'] : ['desktop']})
|
|
191
|
+ .then(function(tracks) {
|
192
|
192
|
localTracks.push(tracks[0]);
|
193
|
193
|
localTracks[1].addEventListener(JitsiMeetJS.events.track.TRACK_MUTE_CHANGED,
|
194
|
194
|
function() {
|
|
@@ -249,8 +249,8 @@ JitsiMeetJS.init(initOptions).then(function() {
|
249
|
249
|
JitsiMeetJS.mediaDevices.addEventListener(JitsiMeetJS.events.mediaDevices.DEVICE_LIST_CHANGED, onDeviceListChanged);
|
250
|
250
|
|
251
|
251
|
connection.connect();
|
252
|
|
- JitsiMeetJS.createLocalTracks({devices: ['audio', 'video']}).
|
253
|
|
- then(onLocalTracks).catch(function(error) {
|
|
252
|
+ JitsiMeetJS.createLocalTracks({devices: ['audio', 'video']})
|
|
253
|
+ .then(onLocalTracks).catch(function(error) {
|
254
|
254
|
throw error;
|
255
|
255
|
});
|
256
|
256
|
}).catch(function(error) {
|
|
@@ -260,7 +260,7 @@ JitsiMeetJS.init(initOptions).then(function() {
|
260
|
260
|
if (JitsiMeetJS.mediaDevices.isDeviceChangeAvailable('output')) {
|
261
|
261
|
JitsiMeetJS.mediaDevices.enumerateDevices(function(devices) {
|
262
|
262
|
var audioOutputDevices = devices.filter(function(d) {
|
263
|
|
- return d.kind === 'audiooutput';
|
|
263
|
+ return d.kind === 'audiooutput';
|
264
|
264
|
});
|
265
|
265
|
|
266
|
266
|
if (audioOutputDevices.length > 1) {
|