fgamez1020
fgamez10203w ago

Mute players

How can I mute the other playeras and how can I mute my self?
2 Replies
kapa.ai
kapa.ai3w ago
Hi @fgamez1020. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To mute players in NormalVR, you can use the RealtimeAvatarVoice component, which handles voice chat functionality. Here's how you can mute other players and yourself: 1. Muting yourself (local player): To mute yourself, you can set the mute property of the RealtimeAvatarVoice component on your local player to true. This will stop sending audio, effectively muting you for everyone in the room. 2. Muting other players (remote players): For remote players, setting the mute property to true will mute their audio stream only for your local client. Here's a brief example of how you might implement this:
// Assuming you have a reference to the RealtimeAvatarVoice component
RealtimeAvatarVoice avatarVoice;

// To mute yourself
avatarVoice.mute = true;

// To unmute yourself
avatarVoice.mute = false;

// The same property is used for both local and remote players
// The behavior changes based on whether it's a local or remote player
// Assuming you have a reference to the RealtimeAvatarVoice component
RealtimeAvatarVoice avatarVoice;

// To mute yourself
avatarVoice.mute = true;

// To unmute yourself
avatarVoice.mute = false;

// The same property is used for both local and remote players
// The behavior changes based on whether it's a local or remote player
Remember that the RealtimeAvatarVoice component works on any realtime prefab as long as the RealtimeView component has an owner. The ownership determines whether the component should be sending or receiving audio. Voice Chat Documentation (https://normcore.io/documentation/realtime/xr/voicechat) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3w ago
<@1053407831916822528> Kapa.ai is still learning and improving, please let me know how I did by reacting below.