Spaces:
Sleeping
Sleeping
Update public/viewer.js
Browse files- public/viewer.js +2 -2
public/viewer.js
CHANGED
|
@@ -27,8 +27,8 @@ async function handleNegotiationNeededEvent(peer) {
|
|
| 27 |
const offer = await peer.createOffer();
|
| 28 |
await peer.setLocalDescription(offer);
|
| 29 |
const payload = {
|
| 30 |
-
sdp: peer.localDescription
|
| 31 |
-
// roomId: "gods"
|
| 32 |
};
|
| 33 |
|
| 34 |
const { data } = await axios.post('/consumer', payload);
|
|
|
|
| 27 |
const offer = await peer.createOffer();
|
| 28 |
await peer.setLocalDescription(offer);
|
| 29 |
const payload = {
|
| 30 |
+
sdp: peer.localDescription
|
| 31 |
+
// , roomId: "gods"
|
| 32 |
};
|
| 33 |
|
| 34 |
const { data } = await axios.post('/consumer', payload);
|