mirror of https://github.com/jetkvm/kvm.git
Compare commits
1 Commits
9ef22376af
...
997a5f8bbd
| Author | SHA1 | Date |
|---|---|---|
|
|
997a5f8bbd |
|
|
@ -534,7 +534,6 @@ export default function KvmIdRoute() {
|
||||||
|
|
||||||
const audioTransceiver = pc.addTransceiver("audio", { direction: "sendrecv" });
|
const audioTransceiver = pc.addTransceiver("audio", { direction: "sendrecv" });
|
||||||
|
|
||||||
if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
|
|
||||||
navigator.mediaDevices.getUserMedia({
|
navigator.mediaDevices.getUserMedia({
|
||||||
audio: {
|
audio: {
|
||||||
echoCancellation: true,
|
echoCancellation: true,
|
||||||
|
|
@ -550,9 +549,6 @@ export default function KvmIdRoute() {
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.warn("Microphone access denied or unavailable:", err.message);
|
console.warn("Microphone access denied or unavailable:", err.message);
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
console.warn("navigator.mediaDevices.getUserMedia is not available in this browser/context");
|
|
||||||
}
|
|
||||||
|
|
||||||
const rpcDataChannel = pc.createDataChannel("rpc");
|
const rpcDataChannel = pc.createDataChannel("rpc");
|
||||||
rpcDataChannel.onclose = () => console.log("rpcDataChannel has closed");
|
rpcDataChannel.onclose = () => console.log("rpcDataChannel has closed");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue