bb2e25de2d
- 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>
30 lines
654 B
TypeScript
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;
|
|
}
|
|
}
|