MCPcopy Create free account
hub / github.com/Wscats/chrome-devtools-cli / WhammyVideo

Function WhammyVideo

src/__tests__/MediaStreamRecorder.js:2228–2235  ·  view source on GitHub ↗
(duration, quality)

Source from the content-addressed store, hash-verified

2226 // a more abstract-ish API
2227
2228 function WhammyVideo(duration, quality) {
2229 this.frames = [];
2230 if (!duration) {
2231 duration = 1;
2232 }
2233 this.duration = 1000 / duration;
2234 this.quality = quality || 0.8;
2235 }
2236
2237 /**
2238 * Pass Canvas or Context or image/webp(string) to {@link Whammy} encoder.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected