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

Function noopCallbacks

packages/player/src/controls.test.ts:4–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { type ControlsCallbacks, createControls } from "./controls";
3
4function noopCallbacks(): ControlsCallbacks {
5 return {
6 onPlay: () => {},
7 onPause: () => {},
8 onSeek: () => {},
9 onSpeedChange: () => {},
10 onMuteToggle: () => {},
11 onVolumeChange: () => {},
12 };
13}
14
15describe("createControls host listeners", () => {
16 it("removes every host listener it added on destroy", () => {

Callers 1

controls.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected