zebra-spaces: own mute flips own mic icon
mic-state broadcasts only inform OTHER peers, so the local view of our own member row stayed muted=false forever — the green mic-on icon never flipped to the red cross when the host (or any speaker) muted. Set members.get(myUUID).muted before sendMicState so renderRoom reflects it immediately on our own row.
This commit is contained in:
parent
c8a9adc423
commit
3a07426994
1 changed files with 6 additions and 2 deletions
|
|
@ -1164,6 +1164,10 @@ $('btn-mute').addEventListener('click', () => {
|
|||
micStream.getAudioTracks().forEach(t=>t.enabled=!muted);
|
||||
$('btn-mute').textContent = muted ? 'unmute' : 'mute';
|
||||
$('btn-mute').className = muted ? 'invert' : '';
|
||||
/* flip our own mic icon — mic-state broadcasts inform OTHER peers, but
|
||||
* without this our own row never updates locally */
|
||||
const mm = members.get(myUUID);
|
||||
if (mm){ mm.muted = muted; renderRoom(); }
|
||||
sendMicState();
|
||||
});
|
||||
$('mic-select').addEventListener('change', async (e) => {
|
||||
|
|
@ -1211,8 +1215,8 @@ logLine('', 'ready — pick a handle, type a rendezvous code, enter the space');
|
|||
|
||||
<footer style="margin:2.2rem auto 0;font-size:0.65rem;color:#999;line-height:1.7;word-break:break-all;font-family:monospace">
|
||||
<span id="pi-seal" style="color:#777;cursor:default;user-select:none" title="">page integrity</span> · built <span class="stamp-date">2026-05-31</span><br>
|
||||
md5 <span class="stamp-md5">54c383d65ea2c7aee396c9444aa28490</span><br>
|
||||
sha256 <span class="stamp-sha">018f444f698e38d36c8b3666d0188633d0dff052b66a3e19cd33385fccbdb7b2</span><br>
|
||||
md5 <span class="stamp-md5">b3bd7f9e87e0dd9c976418bbcca62c2a</span><br>
|
||||
sha256 <span class="stamp-sha">297d2cfc541ed03c04b0905b306b538a543304e81ca95ad8cb983516ff0ad68e</span><br>
|
||||
<span style="color:#bbb">hashes are of this page with these two fields zeroed — to verify, blank them and re-hash</span><br>
|
||||
<span style="color:#bbb">one self-contained file — <strong>save a copy</strong> and verify against these hashes; point at your own servers with ?signal= and ?turncred=, or <a href="host-your-own.html" style="color:#999">host your own community</a></span>
|
||||
</footer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue