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

Function updateSpeed

packages/player/src/controls.ts:361–366  ·  view source on GitHub ↗
(speed: number)

Source from the content-addressed store, hash-verified

359 else controls.classList.remove("hfp-hidden");
360 },
361 updateSpeed(speed: number) {
362 const idx = presets.indexOf(speed);
363 if (idx !== -1) speedIndex = idx;
364 speedBtn.textContent = formatSpeed(speed);
365 setActiveOption(speed);
366 },
367 updateMuted(muted: boolean) {
368 isMuted = muted;
369 muteBtn.innerHTML = getVolumeIcon(muted, currentVolume);

Callers

nothing calls this directly

Calls 2

formatSpeedFunction · 0.85
setActiveOptionFunction · 0.85

Tested by

no test coverage detected