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

Function captureFrameToBuffer

packages/engine/src/services/frameCapture.ts:1794–1802  ·  view source on GitHub ↗
(
  session: CaptureSession,
  frameIndex: number,
  time: number,
)

Source from the content-addressed store, hash-verified

1792 * Used by the streaming encode pipeline to pipe frames directly to FFmpeg stdin.
1793 */
1794export async function captureFrameToBuffer(
1795 session: CaptureSession,
1796 frameIndex: number,
1797 time: number,
1798): Promise<CaptureBufferResult> {
1799 const { buffer, captureTimeMs } = await captureFrameCore(session, frameIndex, time);
1800
1801 return { buffer, captureTimeMs };
1802}
1803
1804/**
1805 * Type of the "inner capture" function consumed by

Calls 1

captureFrameCoreFunction · 0.85

Tested by

no test coverage detected