Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not hide the canera and mute for the remote Participant. #2016

Open
Mu-Aleem opened this issue Aug 29, 2023 · 3 comments
Open

not hide the canera and mute for the remote Participant. #2016

Mu-Aleem opened this issue Aug 29, 2023 · 3 comments
Assignees

Comments

@Mu-Aleem
Copy link

please help me. my hide camera and mute work only for the local Participant not for the remote Participant.

const handleAudioToggle = () => {
room.localParticipant.audioTracks.forEach((track) => {
if (track.track.isEnabled) {
track.track.disable();
} else {
track.track.enable();
}
setToggleAudio(track.track.isEnabled);
});
};

const handleVideoToggle = () => {
room.localParticipant.videoTracks.forEach((track) => {
if (track.track.isEnabled) {
track.track.disable();
} else {
track.track.enable();
}
setToggleVideo(track.track.isEnabled);
});
};

hear is my function.
when i console the room. not find any RemoteAudioTrack or RemoteVideoTrack .

@manjeshbhargav manjeshbhargav self-assigned this Aug 29, 2023
@manjeshbhargav
Copy link
Collaborator

Hi @Mu-Aleem ,

Thanks for writing in with your issue. Are you sure you were not the only person in the Room? That might explain why there were no RemoteParticipants and RemoteTracks.

@Mu-Aleem
Copy link
Author

hi @manjeshbhargav . I'm creating a basic video call app and after connecting the call when I hide or mute my mic its mute and hide on my side only. another user can hire and see my video which is totally wrong.

const handleAudioToggle = () => {
room.localParticipant.audioTracks.forEach((track) => {
if (track.track.isEnabled) {
track.track.disable();
} else {
track.track.enable();
}
setToggleAudio(track.track.isEnabled);
});

 const handleVideoToggle = () => {
room.localParticipant.videoTracks.forEach((track) => {
  if (track.track.isEnabled) {
    track.track.disable();
  } else {
    track.track.enable();
  }
  setToggleVideo(track.track.isEnabled);
});

};

hear is my function which i use for the hide and mute

@manjeshbhargav
Copy link
Collaborator

@Mu-Aleem ,

Have you deployed your app somewhere where I can play around with it? Muting is a basic feature that has been working for a long time, so I would like to access your app if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants