@predy-js/render-interface 0.3.3-beta.22 → 0.3.3-beta.23

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/statistic.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @predy-js/render-interface
3
3
  * Description: undefined
4
4
  * Author: undefined
5
- * Version: v0.3.3-beta.22
5
+ * Version: v0.3.3-beta.23
6
6
  */
7
7
 
8
8
  // https://github.com/greggman/webgl-memory/blob/main/src/texture-utils.js
@@ -56,6 +56,11 @@ export interface PredyVideoDecoder {
56
56
  * @param callback 解析回调
57
57
  */
58
58
  loadVideo(url: string, callback: PredyVideoDecoderLoadedCallback): void;
59
+ /**
60
+ * 如果当前正在解析,中断解析,并且之前的callback返回error(abort)
61
+ * 调用后回到frameReady状态
62
+ */
63
+ abortSeeking(): void;
59
64
  /**
60
65
  * 解析视频的下一帧,获得图像数据。如果调用的时候正在解析,callback直接返回error
61
66
  * @param frameIndex frame的index
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predy-js/render-interface",
3
- "version": "0.3.3-beta.22",
3
+ "version": "0.3.3-beta.23",
4
4
  "license": "MIT",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -65,6 +65,11 @@ export interface PredyVideoDecoder {
65
65
  */
66
66
  loadVideo(url: string, callback: PredyVideoDecoderLoadedCallback): void,
67
67
 
68
+ /**
69
+ * 如果当前正在解析,中断解析,并且之前的callback返回error(abort)
70
+ * 调用后回到frameReady状态
71
+ */
72
+ abortSeeking(): void,
68
73
  /**
69
74
  * 解析视频的下一帧,获得图像数据。如果调用的时候正在解析,callback直接返回error
70
75
  * @param frameIndex frame的index