@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.
- package/dist/EncodedAsset.js +12 -8
- package/package.json +1 -1
package/dist/EncodedAsset.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
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) {
|