v0.4.0
What's Changed
- feat: Add local and remote muting (#9)
This release introduces the highly requested capability to individually mute peers and properly visualize when a peer has muted themselves across the entire Voca stack.
✨ Features
- Local Peer Muting: You can now mute specific individuals in a room without silencing their visual audio pulse or turning off your whole tab.
- Remote Mute Visibility: When a user mutes their own microphone, a
[SELF-MUTED]indicator broadcasts to all other participants.
📦 SDK & API Updates
- Protocol update: The Rust signaling server now supports a
Mute { muted: bool }packet type and broadcasts it safely. Bumped protocol tov0.4.0. - Core Client: Added
localMutedandremoteMutedto the Peer interface object. - Core Client: Added togglePeerMute(peerId) to mute local playback of a specific peer without destroying the
audioContext. - Framework Wrappers: The
peer-muteandpeer-local-mutereactive events were brought directly into@treyorr/voca-svelteand the useVocaRoom() hooks in@treyorr/voca-react.
📚 Documentation
- Updated API Reference with new variables and methods.
- Added togglePeerMute() buttons and
(Self-Muted)indicators to the Svelte and React code blocks inside the Getting Started guide.