diff --git a/backend/.dx b/backend/.dx index 08f5b18..9c5683c 100644 --- a/backend/.dx +++ b/backend/.dx @@ -1,7 +1,7 @@ use stage from #public.uix; endpoint: stage { - prod: @+example-videocall1 + prod: @+example-videocall2 }, location: stage { diff --git a/frontend/entrypoint.tsx b/frontend/entrypoint.tsx index 3c0b112..3a96ea3 100644 --- a/frontend/entrypoint.tsx +++ b/frontend/entrypoint.tsx @@ -3,15 +3,15 @@ import { Runtime } from "unyt_core/datex_all.ts"; const remoteEndpointName = eternal ?? $$(new URLSearchParams(globalThis.location.search).get("remote") ?? "" as "@") -const src = await navigator.mediaDevices.getUserMedia({ video: true, audio: true }); -const ownVideo = +const ownMediaStream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true }); +const ownVideo = const remoteVideo = @endpoint class CallManager { @property static call(mediaStream: MediaStream) { remoteVideo.srcObject = mediaStream; - return src; + return ownMediaStream; } } @@ -21,9 +21,9 @@ export default