MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / updateMuted

Function updateMuted

packages/player/src/controls.ts:367–371  ·  view source on GitHub ↗
(muted: boolean)

Source from the content-addressed store, hash-verified

365 setActiveOption(speed);
366 },
367 updateMuted(muted: boolean) {
368 isMuted = muted;
369 muteBtn.innerHTML = getVolumeIcon(muted, currentVolume);
370 muteBtn.setAttribute("aria-label", muted ? "Unmute" : "Mute");
371 },
372 updateVolume(volume: number) {
373 currentVolume = volume;
374 volumeFill.style.width = `${volume * 100}%`;

Callers

nothing calls this directly

Calls 2

getVolumeIconFunction · 0.85
setAttributeMethod · 0.65

Tested by

no test coverage detected