Files
cinny/src/app/plugins/call/CallControlState.ts
T
jared bb2e25de2d feat: mute screenshare audio independently + fix CI lint/prettier
- Add screenshareAudioMuted state to CallControlState and CallControl
- setSound() now preserves screenshare audio mute when un-deafening
- Add toggleScreenshareAudio() targeting audio[data-lk-source="screen_share_audio"]
- Add ScreenshareAudioButton (volume icon, warns when muted) to controls bar
- Fix unused prevScreenshare variable (ESLint error from prior commit)
- Run Prettier on Controls.tsx and CallControl.ts (CI formatting failures)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 23:52:57 -04:00

30 lines
654 B
TypeScript

export class CallControlState {
public readonly microphone: boolean;
public readonly video: boolean;
public readonly sound: boolean;
public readonly screenshare: boolean;
public readonly spotlight: boolean;
public readonly screenshareAudioMuted: boolean;
constructor(
microphone: boolean,
video: boolean,
sound: boolean,
screenshare = false,
spotlight = false,
screenshareAudioMuted = false,
) {
this.microphone = microphone;
this.video = video;
this.sound = sound;
this.screenshare = screenshare;
this.spotlight = spotlight;
this.screenshareAudioMuted = screenshareAudioMuted;
}
}