fix(channel): assign S.room when joining voice room
This commit is contained in:
1 parent
7b29cf7d10
commit
d3fd800ea7
2 files changed
+4
-1
No files matched your search
@@ -101,7 +101,9 @@ async function joinVoice(room) {
|
|||||||
orientListener();
|
orientListener();
|
||||||
|
|
||||||
await openSignaling(room);
|
await openSignaling(room);
|
||||||
|
S.room = room;
|
||||||
S.connecting = false;
|
S.connecting = false;
|
||||||
|
renderAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchIce() {
|
async function fetchIce() {
|
||||||
@@ -166,6 +168,7 @@ function handleSignal(msg) {
|
|||||||
switch (msg.type) {
|
switch (msg.type) {
|
||||||
case 'hello': {
|
case 'hello': {
|
||||||
S.myId = msg.id;
|
S.myId = msg.id;
|
||||||
|
S.room = msg.room;
|
||||||
for (const p of msg.peers) {
|
for (const p of msg.peers) {
|
||||||
S.peers.set(p.id, makePeerRecord(p));
|
S.peers.set(p.id, makePeerRecord(p));
|
||||||
// deterministic initiator: lower id offers (no glare storm on join)
|
// deterministic initiator: lower id offers (no glare storm on join)
|
||||||
|
|||||||
+1
-1
@@ -97,6 +97,6 @@
|
|||||||
|
|
||||||
<div id="toasts"></div>
|
<div id="toasts"></div>
|
||||||
|
|
||||||
<script src="app.js?v=7"></script>
|
<script src="app.js?v=8"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user