|
@@ -45,9 +45,9 @@ if (supportsLocalStorage()) {
|
45
|
45
|
|
46
|
46
|
var audioOutputDeviceId = window.localStorage.audioOutputDeviceId;
|
47
|
47
|
|
48
|
|
- if (typeof audioOutputDeviceId !== 'undefined' &&
|
49
|
|
- audioOutputDeviceId !== JitsiMeetJS.getAudioOutputDevice()) {
|
50
|
|
- JitsiMeetJS.setAudioOutputDevice(
|
|
48
|
+ if (typeof audioOutputDeviceId !== 'undefined' && audioOutputDeviceId !==
|
|
49
|
+ JitsiMeetJS.mediaDevices.getAudioOutputDevice()) {
|
|
50
|
+ JitsiMeetJS.mediaDevices.setAudioOutputDevice(
|
51
|
51
|
window.localStorage.audioOutputDeviceId).catch((ex) => {
|
52
|
52
|
console.error('failed to set audio output device from local ' +
|
53
|
53
|
'storage', ex);
|
|
@@ -161,7 +161,7 @@ export default {
|
161
|
161
|
* @returns {String}
|
162
|
162
|
*/
|
163
|
163
|
getAudioOutputDeviceId: function () {
|
164
|
|
- return JitsiMeetJS.getAudioOutputDevice();
|
|
164
|
+ return JitsiMeetJS.mediaDevices.getAudioOutputDevice();
|
165
|
165
|
},
|
166
|
166
|
/**
|
167
|
167
|
* Set device id of the audio output device which is currently in use.
|
|
@@ -170,7 +170,7 @@ export default {
|
170
|
170
|
* @returns {Promise}
|
171
|
171
|
*/
|
172
|
172
|
setAudioOutputDeviceId: function (newId = '') {
|
173
|
|
- return JitsiMeetJS.setAudioOutputDevice(newId)
|
|
173
|
+ return JitsiMeetJS.mediaDevices.setAudioOutputDevice(newId)
|
174
|
174
|
.then(() => window.localStorage.audioOutputDeviceId = newId);
|
175
|
175
|
},
|
176
|
176
|
|