MCPcopy
hub / github.com/CapSoftware/Cap / hasCodec

Function hasCodec

packages/recorder-core/src/recorder-utils.ts:234–235  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

232 .filter(Boolean);
233 const isWebm = lowerType.includes("webm");
234 const hasCodec = (prefix: string) =>
235 codecs.some((codec) => codec.startsWith(prefix));
236
237 let videoCodec: string;
238 if (hasCodec("vp9")) videoCodec = "vp9";

Callers 1

describeRecordingCodecsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected