Hiyve Components - v1.0.0
    Preparing search index...

    Function useRemoteMute

    • 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.

      Returns {
          muteRemoteOutput: (userId: string, muted: boolean) => Promise<void>;
          remoteMuteAudio: (userId: string, muted: boolean) => Promise<void>;
          remoteMuteVideo: (userId: string, muted: boolean) => Promise<void>;
      }

      Object containing remoteMuteAudio, remoteMuteVideo, and muteRemoteOutput actions

      • muteRemoteOutput: (userId: string, muted: boolean) => Promise<void>
      • remoteMuteAudio: (userId: string, muted: boolean) => Promise<void>
      • remoteMuteVideo: (userId: string, muted: boolean) => Promise<void>
      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>
      );
      }