@live-change/peer-connection-frontend 0.8.143 → 0.8.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
</template>
|
|
146
146
|
</PermissionsDialog>
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
<pre>{{ model }}</pre>
|
|
149
149
|
<!-- <pre>{{ audioInputs }}</pre>-->
|
|
150
150
|
<!--
|
|
151
151
|
|
|
@@ -488,7 +488,6 @@
|
|
|
488
488
|
const outputDeviceId = model.value?.audioOutput?.deviceId
|
|
489
489
|
if(!output) return
|
|
490
490
|
(async () => {
|
|
491
|
-
console.log("SET OUTPUT DEVICE", outputDeviceId)
|
|
492
491
|
if(outputDeviceId) {
|
|
493
492
|
await output.setSinkId(outputDeviceId)
|
|
494
493
|
} else {
|
|
@@ -601,22 +600,92 @@
|
|
|
601
600
|
...model.value,
|
|
602
601
|
audioInput: value,
|
|
603
602
|
}
|
|
603
|
+
if(value && value.deviceId === audioInputs?.value?.[0]?.deviceId) {
|
|
604
|
+
localStorage.removeItem('audioInput')
|
|
605
|
+
} else if(value) localStorage.setItem('audioInput', JSON.stringify(value))
|
|
604
606
|
}
|
|
605
607
|
function updateAudioOutput(value) {
|
|
606
608
|
model.value = {
|
|
607
609
|
...model.value,
|
|
608
610
|
audioOutput: value
|
|
609
611
|
}
|
|
612
|
+
console.log("UPDATE AUDIO OUTPUT", value)
|
|
613
|
+
if(value && value.deviceId === audioOutputs?.value?.[0]?.deviceId) {
|
|
614
|
+
localStorage.removeItem('audioOutput')
|
|
615
|
+
} else if(value) localStorage.setItem('audioOutput', JSON.stringify(value))
|
|
610
616
|
}
|
|
611
617
|
function updateVideoInput(value) {
|
|
612
|
-
console.log("UPDATE VIDEO INPUT", value)
|
|
613
618
|
model.value = {
|
|
614
619
|
...model.value,
|
|
615
620
|
videoInput: value
|
|
616
621
|
}
|
|
617
|
-
|
|
622
|
+
if(value && value.deviceId === videoInputs?.value?.[0]?.deviceId) {
|
|
623
|
+
localStorage.removeItem('videoInput')
|
|
624
|
+
} else if(value) localStorage.setItem('videoInput', JSON.stringify(value))
|
|
618
625
|
}
|
|
619
626
|
|
|
627
|
+
watch(() => audioInputs.value, value => {
|
|
628
|
+
const saved = localStorage.getItem('audioInput')
|
|
629
|
+
if(saved) {
|
|
630
|
+
const parsed = JSON.parse(saved)
|
|
631
|
+
const exists = value.find(device => device.deviceId === parsed.deviceId)
|
|
632
|
+
|| value.find(device => device.label === parsed.label)
|
|
633
|
+
if(exists) {
|
|
634
|
+
model.value = {
|
|
635
|
+
...model.value,
|
|
636
|
+
audioInput: exists
|
|
637
|
+
}
|
|
638
|
+
setTimeout(() => {
|
|
639
|
+
model.value = {
|
|
640
|
+
...model.value,
|
|
641
|
+
audioInput: exists
|
|
642
|
+
}
|
|
643
|
+
}, 23)
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
})
|
|
647
|
+
watch(() => audioOutputs.value, value => {
|
|
648
|
+
const saved = localStorage.getItem('audioOutput')
|
|
649
|
+
if(saved) {
|
|
650
|
+
const parsed = JSON.parse(saved)
|
|
651
|
+
const exists = value.find(device => device.deviceId === parsed.deviceId)
|
|
652
|
+
|| value.find(device => device.label === parsed.label)
|
|
653
|
+
if(exists) {
|
|
654
|
+
console.log("SET AUDIO OUTPUT", exists)
|
|
655
|
+
model.value = {
|
|
656
|
+
...model.value,
|
|
657
|
+
audioOutput: exists,
|
|
658
|
+
}
|
|
659
|
+
setTimeout(() => {
|
|
660
|
+
model.value = {
|
|
661
|
+
...model.value,
|
|
662
|
+
audioOutput: exists,
|
|
663
|
+
}
|
|
664
|
+
}, 23)
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
})
|
|
668
|
+
watch(() => videoInputs.value, value => {
|
|
669
|
+
const saved = localStorage.getItem('videoInput')
|
|
670
|
+
if(saved) {
|
|
671
|
+
const parsed = JSON.parse(saved)
|
|
672
|
+
const exists = value.find(device => device.deviceId === parsed.deviceId)
|
|
673
|
+
|| value.find(device => device.label === parsed.label)
|
|
674
|
+
if(exists) {
|
|
675
|
+
model.value = {
|
|
676
|
+
...model.value,
|
|
677
|
+
videoInput: exists
|
|
678
|
+
}
|
|
679
|
+
setTimeout(() => {
|
|
680
|
+
model.value = {
|
|
681
|
+
...model.value,
|
|
682
|
+
videoInput: exists
|
|
683
|
+
}
|
|
684
|
+
}, 23)
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
})
|
|
688
|
+
|
|
620
689
|
</script>
|
|
621
690
|
|
|
622
691
|
<style scoped>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/peer-connection-frontend",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.144",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "dotenvx run -- node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; dotenvx run -- node server/start.js localDev --enableSessions --initScript ./init.js",
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/cli": "^0.8.
|
|
26
|
-
"@live-change/dao": "^0.8.
|
|
27
|
-
"@live-change/dao-vue3": "^0.8.
|
|
28
|
-
"@live-change/dao-websocket": "^0.8.
|
|
29
|
-
"@live-change/framework": "^0.8.
|
|
30
|
-
"@live-change/password-authentication-service": "^0.8.
|
|
31
|
-
"@live-change/secret-code-service": "^0.8.
|
|
32
|
-
"@live-change/secret-link-service": "^0.8.
|
|
33
|
-
"@live-change/session-service": "^0.8.
|
|
34
|
-
"@live-change/user-frontend": "^0.8.
|
|
35
|
-
"@live-change/user-service": "^0.8.
|
|
36
|
-
"@live-change/vue3-components": "^0.8.
|
|
37
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
25
|
+
"@live-change/cli": "^0.8.144",
|
|
26
|
+
"@live-change/dao": "^0.8.144",
|
|
27
|
+
"@live-change/dao-vue3": "^0.8.144",
|
|
28
|
+
"@live-change/dao-websocket": "^0.8.144",
|
|
29
|
+
"@live-change/framework": "^0.8.144",
|
|
30
|
+
"@live-change/password-authentication-service": "^0.8.144",
|
|
31
|
+
"@live-change/secret-code-service": "^0.8.144",
|
|
32
|
+
"@live-change/secret-link-service": "^0.8.144",
|
|
33
|
+
"@live-change/session-service": "^0.8.144",
|
|
34
|
+
"@live-change/user-frontend": "^0.8.144",
|
|
35
|
+
"@live-change/user-service": "^0.8.144",
|
|
36
|
+
"@live-change/vue3-components": "^0.8.144",
|
|
37
|
+
"@live-change/vue3-ssr": "^0.8.144",
|
|
38
38
|
"@vueuse/core": "^10.11.0",
|
|
39
39
|
"boxicons": "^2.1.4",
|
|
40
40
|
"codeceptjs-assert": "^0.0.5",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"vue3-scroll-border": "0.1.6"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@live-change/codeceptjs-helper": "^0.8.
|
|
57
|
+
"@live-change/codeceptjs-helper": "^0.8.144",
|
|
58
58
|
"codeceptjs": "^3.6.5",
|
|
59
59
|
"generate-password": "1.7.1",
|
|
60
60
|
"playwright": "^1.41.2",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"author": "Michał Łaszczewski <michal@laszczewski.pl>",
|
|
66
66
|
"license": "BSD-3-Clause",
|
|
67
67
|
"description": "",
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "cea115baa7d457fa6e3865d025662b1e11b15aac"
|
|
69
69
|
}
|