|
|
@ -244,10 +244,12 @@ export default {
|
|
|
|
size: "0KB",
|
|
|
|
size: "0KB",
|
|
|
|
length: 0,
|
|
|
|
length: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
allOutputDevices: [{
|
|
|
|
allOutputDevices: [
|
|
|
|
|
|
|
|
{
|
|
|
|
deviceId: "default",
|
|
|
|
deviceId: "default",
|
|
|
|
label: "settings.permissionRequired"
|
|
|
|
label: "settings.permissionRequired",
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
withoutAudioPriviledge: true,
|
|
|
|
withoutAudioPriviledge: true,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -399,8 +401,8 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getAllOutputDevices() {
|
|
|
|
getAllOutputDevices() {
|
|
|
|
navigator.mediaDevices.
|
|
|
|
navigator.mediaDevices
|
|
|
|
getUserMedia({ audio: true })
|
|
|
|
.getUserMedia({ audio: true })
|
|
|
|
.then(() => {
|
|
|
|
.then(() => {
|
|
|
|
this.withoutAudioPriviledge = false;
|
|
|
|
this.withoutAudioPriviledge = false;
|
|
|
|
navigator.mediaDevices
|
|
|
|
navigator.mediaDevices
|
|
|
@ -413,11 +415,13 @@ export default {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.allOutputDevices = [{
|
|
|
|
this.allOutputDevices = [
|
|
|
|
|
|
|
|
{
|
|
|
|
deviceId: "default",
|
|
|
|
deviceId: "default",
|
|
|
|
label: "settings.permissionDenied",
|
|
|
|
label: "settings.permissionDenied",
|
|
|
|
}];
|
|
|
|
},
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
logout() {
|
|
|
|
logout() {
|
|
|
|
doLogout();
|
|
|
|
doLogout();
|
|
|
|