mirror of
https://github.com/screego/server.git
synced 2026-10-30 18:12:05 +08:00
Remove RTCSessionDescription
Deprecated https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/RTCSessionDescription
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user