This message was deleted.
# helpdesk
s
This message was deleted.
d
you can RemoteTrackPublication.setEnabled for exactly this 🙂
f
I get this error
adaptive stream is enabled, cannot change video track settings
d
right, it does not work in conjunction with adaptive stream. though audio track should work
f
@dry-elephant-14928 I created component with list of participants using
useParticipants
hook. And created a function that disable audio on button click.
Copy code
participant.audioTracks.forEach((track) => {
     console.log(track, 'track');
     track.setEnabled(false);
});
It does nothing. (btw I have
roomAdmin
permission)
d
you'd want to use
useTracks
and a
useEffect
.
useParticipants
is not guaranteed to update when tracks are changed