@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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/statistic.js +1 -1
- package/dist/types/native/VideoDecoder.d.ts +5 -0
- package/package.json +1 -1
- package/types/native/VideoDecoder.ts +5 -0
package/dist/statistic.js
CHANGED
@@ -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
@@ -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
|