openvideo 0.2.14 → 0.2.16
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/{browserAll-D7ROm3gc.js → browserAll-B3JM-tAA.js} +2 -2
- package/dist/clips/video-clip.d.ts +4 -4
- package/dist/{index-xULbfbWy.js → index-T-Me9eJ5.js} +450 -418
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +61 -61
- package/dist/studio/timeline-model.d.ts +7 -0
- package/dist/studio.d.ts +4 -0
- package/dist/{webworkerAll-BVuwnC-Q.js → webworkerAll-CkYxS0eA.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as a, A as e, C as i, a as s, E as t, F as n, D as d } from "./index-
|
|
2
|
-
import "./webworkerAll-
|
|
1
|
+
import { e as a, A as e, C as i, a as s, E as t, F as n, D as d } from "./index-T-Me9eJ5.js";
|
|
2
|
+
import "./webworkerAll-CkYxS0eA.js";
|
|
3
3
|
a.add(e);
|
|
4
4
|
a.mixin(i, s);
|
|
5
5
|
a.add(t);
|
|
@@ -20,7 +20,7 @@ export interface IMP4ClipOpts {
|
|
|
20
20
|
*/
|
|
21
21
|
__unsafe_hardwareAcceleration__?: HardwarePreference;
|
|
22
22
|
}
|
|
23
|
-
type ExtMP4Sample = Omit<MP4Sample,
|
|
23
|
+
type ExtMP4Sample = Omit<MP4Sample, "data"> & {
|
|
24
24
|
is_idr: boolean;
|
|
25
25
|
deleted?: boolean;
|
|
26
26
|
data: null | Uint8Array;
|
|
@@ -57,7 +57,7 @@ export declare class Video extends BaseClip implements IPlaybackCapable {
|
|
|
57
57
|
readonly type = "Video";
|
|
58
58
|
private insId;
|
|
59
59
|
private logger;
|
|
60
|
-
ready: IClip[
|
|
60
|
+
ready: IClip["ready"];
|
|
61
61
|
private _meta;
|
|
62
62
|
get meta(): {
|
|
63
63
|
duration: number;
|
|
@@ -129,7 +129,7 @@ export declare class Video extends BaseClip implements IPlaybackCapable {
|
|
|
129
129
|
* @param tickRet Data returned by tick
|
|
130
130
|
*
|
|
131
131
|
* */
|
|
132
|
-
tickInterceptor: <T extends Awaited<ReturnType<Video[
|
|
132
|
+
tickInterceptor: <T extends Awaited<ReturnType<Video["tick"]>>>(time: number, tickRet: T) => Promise<T>;
|
|
133
133
|
/**
|
|
134
134
|
* Get image frame and audio data at specified time
|
|
135
135
|
* @param time Time in microseconds
|
|
@@ -137,7 +137,7 @@ export declare class Video extends BaseClip implements IPlaybackCapable {
|
|
|
137
137
|
tick(time: number): Promise<{
|
|
138
138
|
video?: VideoFrame;
|
|
139
139
|
audio: Float32Array[];
|
|
140
|
-
state:
|
|
140
|
+
state: "success" | "done";
|
|
141
141
|
}>;
|
|
142
142
|
private thumbAborter;
|
|
143
143
|
private thumbFinder;
|