MCPcopy
hub / github.com/midrender/revideo / close

Method close

packages/2d/src/lib/utils/video/parser/segment.ts:282–293  ·  view source on GitHub ↗

* Called when we are done with the extractor.

()

Source from the content-addressed store, hash-verified

280 * Called when we are done with the extractor.
281 */
282 public async close() {
283 this.abortController.abort();
284 this.frameBuffer.forEach(frame => frame.close());
285 try {
286 if (this.decoder.state === 'configured') {
287 await this.decoder.flush();
288 this.decoder.close();
289 }
290 } catch (e) {
291 // Ignore
292 }
293 }
294
295 public getFramesProcessed() {
296 return this.framesProcessed;

Callers 8

dropExtractorFunction · 0.45
getFrameFunction · 0.45
getNextFrameMethod · 0.45
startMethod · 0.45
onFrameMethod · 0.45
renderVideoOnPageFunction · 0.45
handleFrameMethod · 0.45
stopFunction · 0.45

Calls 1

abortMethod · 0.80

Tested by

no test coverage detected