@editframe/assets 0.16.4-beta.0 → 0.16.7-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,6 +63,7 @@ const _VideoAsset = class _VideoAsset2 extends ISOFileAsset {
63
63
  this.videoDecoder = new VideoDecoder({
64
64
  error: (e) => {
65
65
  console.error("Video Decoder Error", e);
66
+ throw e;
66
67
  },
67
68
  // eslint-disable-next-line @typescript-eslint/no-misused-promises
68
69
  output: async (decodedFrame) => {
@@ -110,7 +111,9 @@ const _VideoAsset = class _VideoAsset2 extends ISOFileAsset {
110
111
  * @deprecated
111
112
  */
112
113
  async TEST_ONLY_RESET() {
113
- await this.videoDecoder.flush();
114
+ if (this.videoDecoder.state !== "closed") {
115
+ await this.videoDecoder.flush();
116
+ }
114
117
  this.configureDecoder();
115
118
  this.requestedSampleNumber = 0;
116
119
  this.outCursor = 0;
@@ -364,13 +367,14 @@ const _VideoAsset = class _VideoAsset2 extends ISOFileAsset {
364
367
  if (targetInCache) {
365
368
  return false;
366
369
  }
367
- log("========");
368
- log("sampleCursor", this.sampleCursor);
369
- log(" outCursor", this.outCursor);
370
- log(" target", targetSample.number);
371
- log(" targetIndex", targetIndex);
372
- log(" inCache", !!targetInCache);
373
- log(" atEnd", atEnd);
370
+ log({
371
+ sampleCursor: this.sampleCursor,
372
+ outCursor: this.outCursor,
373
+ target: targetSample.number,
374
+ targetIndex,
375
+ inCache: !!targetInCache,
376
+ atEnd
377
+ });
374
378
  return this.outCursor > targetIndex;
375
379
  }
376
380
  async seekToTime(seconds) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editframe/assets",
3
- "version": "0.16.4-beta.0",
3
+ "version": "0.16.7-beta.0",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {