MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / decrementQueue

Method decrementQueue

src/video_encoder.ts:434–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432 }
433
434 private decrementQueue() {
435 this._encodeQueueSize = Math.max(this._encodeQueueSize - 1, 0);
436
437 // Spec 6.6: Schedule Dequeue Event
438 queueMicrotask(() => {
439 const event = new Event('dequeue');
440 this.ondequeue?.bind(this)(event);
441 this.dispatchEvent(event);
442 });
443 }
444
445 lastBuffer: Buffer | null = null;
446

Callers 3

encodeInternalMethod · 0.95
closeMethod · 0.95
resetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected