mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-19 06:38:21 +03:00
When using two-way audio, the camera mic picks up speaker audio and sends it back through RTSP → go2rtc → WebRTC → phone speaker, creating an echo feedback loop. Two changes working together: 1. Half-duplex echo suppression: mute receive audio while mic is active. This is the standard approach used by camera talkback implementations. 2. Obtain mic track once, reuse across toggles: instead of rebuilding the PeerConnection on every mic toggle, the mic track is obtained once on first activation and reused. Subsequent toggles just flip track.enabled. This is critical for iOS where getUserMedia triggers audio routing mode switches that cannot be reversed without closing the PeerConnection. |
||
|---|---|---|
| .. | ||
| api | ||
| components | ||
| context | ||
| hooks | ||
| lib | ||
| pages | ||
| types | ||
| utils | ||
| views | ||
| App.tsx | ||
| env.ts | ||
| index.css | ||
| login.tsx | ||
| main.tsx | ||
| vite-env.d.ts | ||