* Called when we are done with the extractor.
()
| 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; |
no test coverage detected