Object containing remoteMuteAudio, remoteMuteVideo, and muteRemoteOutput actions
import { useRemoteMute } from '@hiyve/rn-react';
function ParticipantControls({ userId }: { userId: string }) {
const { remoteMuteAudio, remoteMuteVideo } = useRemoteMute();
return (
<View>
<Button title="Mute Mic" onPress={() => remoteMuteAudio(userId, true)} />
<Button title="Turn Off Camera" onPress={() => remoteMuteVideo(userId, true)} />
</View>
);
}
Access host-only actions for remotely muting participants.
Provides bound actions for muting/unmuting a participant's audio, video, or output from the host side. These actions are no-ops when called by a non-owner.