From dfd5b2492b19171f25e9790a3ff688927c16f83c Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Tue, 6 Oct 2020 19:09:31 +0200 Subject: [PATCH] Remove RTCSessionDescription Deprecated https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/RTCSessionDescription --- ui/src/useRoom.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/useRoom.ts b/ui/src/useRoom.ts index badfc12..dabea59 100644 --- a/ui/src/useRoom.ts +++ b/ui/src/useRoom.ts @@ -219,13 +219,13 @@ export const useRoom = (): UseRoom => { return; case 'clientanswer': host.current[event.payload.sid]?.setRemoteDescription( - new RTCSessionDescription(event.payload.value) + event.payload.value ); return; case 'hostoffer': (async () => { await client.current[event.payload.sid]?.setRemoteDescription( - new RTCSessionDescription(event.payload.value) + event.payload.value ); const answer = await client.current[ event.payload.sid