If the host's mic publish lands AFTER the listener's initial autoEnableDjModeForListener pass (which runs 600ms after the listener sees the peer-joined event), the /stream request 404s with "no such publisher in room" and onFail removes the pubHex from streamMode. No event re-triggers the auto-enrol after that — peer- joined doesn't refire when an already-present member starts publishing. Add a 4s interval retry loop while in listener mode. autoEnableDj- ModeForListener is idempotent (skips already-enrolled pubHexes), so the loop is cheap and only re-attempts the missing ones. Stops automatically on role transition out of listener. This was the root cause behind every "no music on phone" report so far: the SFU logs show /stream 404s when the phone tried, then never again after the host's mic publish completed. The retry loop closes the race. Tests green (83 fsm + 16 zebra-spaces). |
||
|---|---|---|
| .. | ||
| blog | ||
| fonts | ||
| chat.html | ||
| host-your-own.html | ||
| how-it-works.html | ||
| index.html | ||
| kernel.html | ||
| stamp.js | ||
| zebra-audio.html | ||
| zebra-spaces.html | ||