KamoCRM

debug+fix(softphone): inspect <audio> element state, auto-recover when bytes arrive but sound stays silent

Otherkamo-internal
Shipped
26 ஏப்ரல், 2026 அன்று 11:45 PM UTC
Author
kamo
Commit
86f609c

WebRTC stats from a recent call showed inboundBytes=39680 / receivers unmuted / ICE pair succeeded — the bridge was delivering audio to the browser — yet the operator reported silence. That means the receiver track is fine but the <audio> element itself isn't playing it: paused, muted, volume=0, or routed to a sinkId the operator can't hear (e.g. a disconnected output device selected earlier on a different machine). The 5-second beacon now also captures audio-element state (paused / muted / volume / currentTime / sinkId / srcObject) so we can see which of those four conditions is the cause. And — defensively — if any of the three "easy" failures (paused, muted, volume===0) is observed *while* inbound bytes are flowing, the SDK self-corrects the element right then. That alone may restore audio in the field; the dump still makes it clear what the underlying mis-state was.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing