()
| 9762 | this.player.debug.log('Webcodecs', 'destroy'); |
| 9763 | } |
| 9764 | initDecoder() { |
| 9765 | const _this = this; |
| 9766 | this.decoder = new VideoDecoder({ |
| 9767 | output(videoFrame) { |
| 9768 | _this.handleDecode(videoFrame); |
| 9769 | }, |
| 9770 | error(error) { |
| 9771 | _this.handleError(error); |
| 9772 | } |
| 9773 | }); |
| 9774 | } |
| 9775 | handleDecode(videoFrame) { |
| 9776 | if (this.player.isDestroyedOrClosed()) { |
| 9777 | return; |