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

Function getVolumeIcon

packages/player/src/controls.ts:167–172  ·  view source on GitHub ↗
(muted: boolean, volume: number)

Source from the content-addressed store, hash-verified

165 if (speedIndex === -1) speedIndex = 0;
166
167 const getVolumeIcon = (muted: boolean, volume: number): string => {
168 if (muted) return VOLUME_MUTED_ICON;
169 if (volume === 0) return VOLUME_LOW_ICON;
170 if (volume < 0.5) return VOLUME_LOW_ICON;
171 return VOLUME_HIGH_ICON;
172 };
173
174 playBtn.addEventListener("click", (e) => {
175 e.stopPropagation();

Callers 4

handleVolumeAtFunction · 0.85
createControlsFunction · 0.85
updateMutedFunction · 0.85
updateVolumeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected