[0.2.2.6] - 2025-12-08
- Audio Level Visualizer:
- Lobby: Added a real-time audio bar to the video preview, allowing users to verify their microphone input level before joining.
- Meeting Room (Local): Implemented a zero-latency audio bar for the local user's tile using direct polling logic.
- Noise Gate: Applied a noise gate (5% threshold) to the local visualizer to prevent background noise (e.g., fans, AC) from triggering the bar animation.
- Enhanced Debugging System:
- Upgraded `logDebug()` function in both Lobby and Meeting Room to support optional `title` and `color` parameters.
- Developers can now categorize logs (e.g., `[WPJ_DEBUG][RTM]`) and color-code them for easier troubleshooting in the browser console.
- Speaking Indicator Logic:
- Hybrid Architecture: Split visualization logic into two streams:
- Local: Uses high-frequency interval polling (100ms) for smooth, instant feedback on the user's own tile.
- Remote: Uses Agora's `volume-indicator` event (200ms) for network-efficient updates on other participants.
- UX Refinement:
- Remote Users: Now display ONLY the "Speaking" border (Green) when talking. The audio bar is hidden to keep the grid clean.
- Local User: Now displays ONLY the Audio Bar. The "Speaking" border is removed to reduce visual redundancy.
- Sensitivity: Lowered the remote detection threshold (from 10 to 3) to improve responsiveness for soft speech.