added missing Settings functionality, moved ntfy setting

This commit is contained in:
PxlLoewe
2025-07-17 01:08:10 -07:00
parent 44427a1b4b
commit 11b1d8745d
9 changed files with 141 additions and 150 deletions

View File

@@ -15,17 +15,25 @@ export const handleTrackSubscribed = (
if (!track.isMuted) {
useAudioStore.getState().addSpeakingParticipant(participant);
}
track.on("unmuted", () => {
useAudioStore.getState().addSpeakingParticipant(participant);
});
track.on("muted", () => {
useAudioStore.getState().removeSpeakingParticipant(participant);
});
if (track.kind === Track.Kind.Video || track.kind === Track.Kind.Audio) {
// attach it to a new HTMLVideoElement or HTMLAudioElement
const element = track.attach();
element.play();
track.on("unmuted", () => {
useAudioStore.getState().addSpeakingParticipant(participant);
console.log(useAudioStore.getState().settings.radioVolume);
element.volume = useAudioStore.getState().settings.radioVolume;
});
track.on("unmuted", () => {
useAudioStore.getState().addSpeakingParticipant(participant);
});
}
track.on("muted", () => {
useAudioStore.getState().removeSpeakingParticipant(participant);
});
};
export const handleTrackUnsubscribed = (track: RemoteTrack) => {