MCPcopy Index your code
hub / github.com/CapSoftware/Cap / checkSupport

Function checkSupport

apps/web/components/tools/MediaFormatConverter.tsx:207–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205
206 useEffect(() => {
207 const checkSupport = async () => {
208 if (MediaRecorder.isTypeSupported("video/webm")) {
209 setSupportedFormats((prev) => [...prev, "webm"]);
210 }
211
212 trackEvent(`${conversionPath}_tool_loaded`);
213 };
214
215 checkSupport();
216 }, [conversionPath]);

Callers 1

MediaFormatConverterFunction · 0.85

Calls 1

trackEventFunction · 0.90

Tested by

no test coverage detected