@rendley/sdk 1.9.3 → 1.9.4

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.
@@ -117,8 +117,8 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
117
117
  update(currentTime: number): void;
118
118
  clone(): HtmlTextClip;
119
119
  serialize(): {
120
- type: string;
121
120
  id: string;
121
+ type: string;
122
122
  subtitlesOffset: number;
123
123
  startTime: number;
124
124
  duration: number;
@@ -170,8 +170,8 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
170
170
  wordWrap: boolean;
171
171
  };
172
172
  text?: string | undefined;
173
- style?: unknown;
174
173
  customData?: [string, unknown][] | undefined;
174
+ style?: unknown;
175
175
  mediaDataId?: string | undefined;
176
176
  subtitlesId?: string | undefined;
177
177
  wrapMode?: import('../../../../types').WrapModeEnum | undefined;
@@ -185,8 +185,8 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
185
185
  outOutOfRange: import("../../../..").OutOfRangeEnum;
186
186
  property: string;
187
187
  keyframes: {
188
- time: number;
189
188
  value: string | number;
189
+ time: number;
190
190
  easing: import("../../../..").EasingEnum;
191
191
  space: import("../../../..").AnimationSpaceEnum;
192
192
  relativeProperty?: string | undefined;
@@ -205,8 +205,8 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
205
205
  outOutOfRange: import("../../../..").OutOfRangeEnum;
206
206
  property: string;
207
207
  keyframes: {
208
- time: number;
209
208
  value: string | number;
209
+ time: number;
210
210
  easing: import("../../../..").EasingEnum;
211
211
  space: import("../../../..").AnimationSpaceEnum;
212
212
  relativeProperty?: string | undefined;
@@ -225,8 +225,8 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
225
225
  outOutOfRange: import("../../../..").OutOfRangeEnum;
226
226
  property: string;
227
227
  keyframes: {
228
- time: number;
229
228
  value: string | number;
229
+ time: number;
230
230
  easing: import("../../../..").EasingEnum;
231
231
  space: import("../../../..").AnimationSpaceEnum;
232
232
  relativeProperty?: string | undefined;
@@ -80,8 +80,8 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
80
80
  replaceFillColor(layerId: string | number, color: Array<number>): void;
81
81
  replaceImage(layerId: string | number, url: string): void;
82
82
  serialize(): {
83
- type: string;
84
83
  id: string;
84
+ type: string;
85
85
  subtitlesOffset: number;
86
86
  startTime: number;
87
87
  duration: number;
@@ -109,8 +109,8 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
109
109
  isVisible: boolean;
110
110
  dataUrl: string;
111
111
  text?: string | undefined;
112
- style?: unknown;
113
112
  customData?: [string, unknown][] | undefined;
113
+ style?: unknown;
114
114
  mediaDataId?: string | undefined;
115
115
  subtitlesId?: string | undefined;
116
116
  wrapMode?: import('../../../../types').WrapModeEnum | undefined;
@@ -124,8 +124,8 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
124
124
  outOutOfRange: import("../../../..").OutOfRangeEnum;
125
125
  property: string;
126
126
  keyframes: {
127
- time: number;
128
127
  value: string | number;
128
+ time: number;
129
129
  easing: import("../../../..").EasingEnum;
130
130
  space: import("../../../..").AnimationSpaceEnum;
131
131
  relativeProperty?: string | undefined;
@@ -144,8 +144,8 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
144
144
  outOutOfRange: import("../../../..").OutOfRangeEnum;
145
145
  property: string;
146
146
  keyframes: {
147
- time: number;
148
147
  value: string | number;
148
+ time: number;
149
149
  easing: import("../../../..").EasingEnum;
150
150
  space: import("../../../..").AnimationSpaceEnum;
151
151
  relativeProperty?: string | undefined;
@@ -164,8 +164,8 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
164
164
  outOutOfRange: import("../../../..").OutOfRangeEnum;
165
165
  property: string;
166
166
  keyframes: {
167
- time: number;
168
167
  value: string | number;
168
+ time: number;
169
169
  easing: import("../../../..").EasingEnum;
170
170
  space: import("../../../..").AnimationSpaceEnum;
171
171
  relativeProperty?: string | undefined;
@@ -16,8 +16,8 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
16
16
  destroy(): void;
17
17
  serialize(): {
18
18
  shape: string;
19
- type: string;
20
19
  id: string;
20
+ type: string;
21
21
  subtitlesOffset: number;
22
22
  startTime: number;
23
23
  duration: number;
@@ -44,8 +44,8 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
44
44
  }[];
45
45
  isVisible: boolean;
46
46
  text?: string | undefined;
47
- style?: unknown;
48
47
  customData?: [string, unknown][] | undefined;
48
+ style?: unknown;
49
49
  mediaDataId?: string | undefined;
50
50
  subtitlesId?: string | undefined;
51
51
  wrapMode?: import('../../../../types').WrapModeEnum | undefined;
@@ -59,8 +59,8 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
59
59
  outOutOfRange: import("../../../..").OutOfRangeEnum;
60
60
  property: string;
61
61
  keyframes: {
62
- time: number;
63
62
  value: string | number;
63
+ time: number;
64
64
  easing: import("../../../..").EasingEnum;
65
65
  space: import("../../../..").AnimationSpaceEnum;
66
66
  relativeProperty?: string | undefined;
@@ -79,8 +79,8 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
79
79
  outOutOfRange: import("../../../..").OutOfRangeEnum;
80
80
  property: string;
81
81
  keyframes: {
82
- time: number;
83
82
  value: string | number;
83
+ time: number;
84
84
  easing: import("../../../..").EasingEnum;
85
85
  space: import("../../../..").AnimationSpaceEnum;
86
86
  relativeProperty?: string | undefined;
@@ -99,8 +99,8 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
99
99
  outOutOfRange: import("../../../..").OutOfRangeEnum;
100
100
  property: string;
101
101
  keyframes: {
102
- time: number;
103
102
  value: string | number;
103
+ time: number;
104
104
  easing: import("../../../..").EasingEnum;
105
105
  space: import("../../../..").AnimationSpaceEnum;
106
106
  relativeProperty?: string | undefined;
@@ -9,8 +9,6 @@ interface ShapeClipStyleOptions extends ClipStyleOptions {
9
9
  hasFill?: boolean;
10
10
  }
11
11
  export declare const ShapeStyleSchema: z.ZodObject<{
12
- height: z.ZodOptional<z.ZodNumber>;
13
- width: z.ZodOptional<z.ZodNumber>;
14
12
  mediaDataId: z.ZodOptional<z.ZodString>;
15
13
  clipId: z.ZodString;
16
14
  alpha: z.ZodNumber;
@@ -18,6 +16,8 @@ export declare const ShapeStyleSchema: z.ZodObject<{
18
16
  position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
19
17
  scale: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
20
18
  zIndex: z.ZodNumber;
19
+ width: z.ZodOptional<z.ZodNumber>;
20
+ height: z.ZodOptional<z.ZodNumber>;
21
21
  cornerRadius: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
22
22
  relativeCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
23
23
  fillColor: z.ZodOptional<z.ZodString>;
@@ -34,9 +34,9 @@ export declare const ShapeStyleSchema: z.ZodObject<{
34
34
  zIndex: number;
35
35
  relativeCornerRadius: boolean;
36
36
  hasFill: boolean;
37
- height?: number | undefined;
38
- width?: number | undefined;
39
37
  mediaDataId?: string | undefined;
38
+ width?: number | undefined;
39
+ height?: number | undefined;
40
40
  cornerRadius?: [number, number, number, number] | undefined;
41
41
  fillColor?: string | undefined;
42
42
  strokeColor?: string | undefined;
@@ -49,9 +49,9 @@ export declare const ShapeStyleSchema: z.ZodObject<{
49
49
  position: [number, number];
50
50
  scale: [number, number];
51
51
  zIndex: number;
52
- height?: number | undefined;
53
- width?: number | undefined;
54
52
  mediaDataId?: string | undefined;
53
+ width?: number | undefined;
54
+ height?: number | undefined;
55
55
  cornerRadius?: [number, number, number, number] | undefined;
56
56
  relativeCornerRadius?: boolean | undefined;
57
57
  fillColor?: string | undefined;
@@ -87,9 +87,9 @@ export declare class ShapeStyle extends ClipStyle<ShapeSprite> {
87
87
  zIndex: number;
88
88
  relativeCornerRadius: boolean;
89
89
  hasFill: boolean;
90
- height?: number | undefined;
91
- width?: number | undefined;
92
90
  mediaDataId?: string | undefined;
91
+ width?: number | undefined;
92
+ height?: number | undefined;
93
93
  cornerRadius?: [number, number, number, number] | undefined;
94
94
  fillColor?: string | undefined;
95
95
  strokeColor?: string | undefined;
@@ -21,8 +21,8 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
21
21
  destroy(): void;
22
22
  serialize(): {
23
23
  text: string;
24
- type: string;
25
24
  id: string;
25
+ type: string;
26
26
  subtitlesOffset: number;
27
27
  startTime: number;
28
28
  duration: number;
@@ -48,8 +48,8 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
48
48
  sourceId: string;
49
49
  }[];
50
50
  isVisible: boolean;
51
- style?: unknown;
52
51
  customData?: [string, unknown][] | undefined;
52
+ style?: unknown;
53
53
  mediaDataId?: string | undefined;
54
54
  subtitlesId?: string | undefined;
55
55
  wrapMode?: import('../../../../index').WrapModeEnum | undefined;
@@ -63,8 +63,8 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
63
63
  outOutOfRange: import('../../../../index').OutOfRangeEnum;
64
64
  property: string;
65
65
  keyframes: {
66
- time: number;
67
66
  value: string | number;
67
+ time: number;
68
68
  easing: import('../../../../index').EasingEnum;
69
69
  space: import('../../../../index').AnimationSpaceEnum;
70
70
  relativeProperty?: string | undefined;
@@ -83,8 +83,8 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
83
83
  outOutOfRange: import('../../../../index').OutOfRangeEnum;
84
84
  property: string;
85
85
  keyframes: {
86
- time: number;
87
86
  value: string | number;
87
+ time: number;
88
88
  easing: import('../../../../index').EasingEnum;
89
89
  space: import('../../../../index').AnimationSpaceEnum;
90
90
  relativeProperty?: string | undefined;
@@ -103,8 +103,8 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
103
103
  outOutOfRange: import('../../../../index').OutOfRangeEnum;
104
104
  property: string;
105
105
  keyframes: {
106
- time: number;
107
106
  value: string | number;
107
+ time: number;
108
108
  easing: import('../../../../index').EasingEnum;
109
109
  space: import('../../../../index').AnimationSpaceEnum;
110
110
  relativeProperty?: string | undefined;
@@ -16,8 +16,6 @@ interface TextClipStyleOptions extends ClipStyleOptions {
16
16
  padding?: number[];
17
17
  }
18
18
  export declare const TextStyleSchema: z.ZodObject<{
19
- height: z.ZodOptional<z.ZodNumber>;
20
- width: z.ZodOptional<z.ZodNumber>;
21
19
  mediaDataId: z.ZodOptional<z.ZodString>;
22
20
  clipId: z.ZodString;
23
21
  alpha: z.ZodNumber;
@@ -25,6 +23,8 @@ export declare const TextStyleSchema: z.ZodObject<{
25
23
  position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
26
24
  scale: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
27
25
  zIndex: z.ZodNumber;
26
+ width: z.ZodOptional<z.ZodNumber>;
27
+ height: z.ZodOptional<z.ZodNumber>;
28
28
  cornerRadius: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
29
29
  relativeCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
30
30
  fontSize: z.ZodNumber;
@@ -57,9 +57,9 @@ export declare const TextStyleSchema: z.ZodObject<{
57
57
  strokeThickness: number;
58
58
  wordWrapWidth: number | null;
59
59
  padding: number[];
60
- height?: number | undefined;
61
- width?: number | undefined;
62
60
  mediaDataId?: string | undefined;
61
+ width?: number | undefined;
62
+ height?: number | undefined;
63
63
  cornerRadius?: [number, number, number, number] | undefined;
64
64
  }, {
65
65
  color: string;
@@ -75,9 +75,9 @@ export declare const TextStyleSchema: z.ZodObject<{
75
75
  textAlign: "left" | "center" | "right" | "justify";
76
76
  fontStyle: "normal" | "italic" | "oblique";
77
77
  backgroundColor: string | null;
78
- height?: number | undefined;
79
- width?: number | undefined;
80
78
  mediaDataId?: string | undefined;
79
+ width?: number | undefined;
80
+ height?: number | undefined;
81
81
  cornerRadius?: [number, number, number, number] | undefined;
82
82
  relativeCornerRadius?: boolean | undefined;
83
83
  strokeColor?: string | undefined;
@@ -145,9 +145,9 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
145
145
  strokeThickness: number;
146
146
  wordWrapWidth: number | null;
147
147
  padding: number[];
148
- height?: number | undefined;
149
- width?: number | undefined;
150
148
  mediaDataId?: string | undefined;
149
+ width?: number | undefined;
150
+ height?: number | undefined;
151
151
  cornerRadius?: [number, number, number, number] | undefined;
152
152
  };
153
153
  static deserialize(payload: object): TextStyle;
@@ -66,8 +66,8 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
66
66
  destroy(): void;
67
67
  clone(): VideoClip;
68
68
  serialize(): {
69
- type: string;
70
69
  id: string;
70
+ type: string;
71
71
  mediaDataId: string;
72
72
  subtitlesOffset: number;
73
73
  startTime: number;
@@ -95,8 +95,8 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
95
95
  }[];
96
96
  isVisible: boolean;
97
97
  text?: string | undefined;
98
- style?: unknown;
99
98
  customData?: [string, unknown][] | undefined;
99
+ style?: unknown;
100
100
  subtitlesId?: string | undefined;
101
101
  wrapMode?: import('../../../../types').WrapModeEnum | undefined;
102
102
  animationController?: {
@@ -109,8 +109,8 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
109
109
  outOutOfRange: import("../../../..").OutOfRangeEnum;
110
110
  property: string;
111
111
  keyframes: {
112
- time: number;
113
112
  value: string | number;
113
+ time: number;
114
114
  easing: import("../../../..").EasingEnum;
115
115
  space: import("../../../..").AnimationSpaceEnum;
116
116
  relativeProperty?: string | undefined;
@@ -129,8 +129,8 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
129
129
  outOutOfRange: import("../../../..").OutOfRangeEnum;
130
130
  property: string;
131
131
  keyframes: {
132
- time: number;
133
132
  value: string | number;
133
+ time: number;
134
134
  easing: import("../../../..").EasingEnum;
135
135
  space: import("../../../..").AnimationSpaceEnum;
136
136
  relativeProperty?: string | undefined;
@@ -149,8 +149,8 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
149
149
  outOutOfRange: import("../../../..").OutOfRangeEnum;
150
150
  property: string;
151
151
  keyframes: {
152
- time: number;
153
152
  value: string | number;
153
+ time: number;
154
154
  easing: import("../../../..").EasingEnum;
155
155
  space: import("../../../..").AnimationSpaceEnum;
156
156
  relativeProperty?: string | undefined;
@@ -5,12 +5,12 @@ export declare const DisplaySchema: z.ZodObject<{
5
5
  height: z.ZodNumber;
6
6
  backgroundColor: z.ZodString;
7
7
  }, "strip", z.ZodTypeAny, {
8
- height: number;
9
8
  width: number;
9
+ height: number;
10
10
  backgroundColor: string;
11
11
  }, {
12
- height: number;
13
12
  width: number;
13
+ height: number;
14
14
  backgroundColor: string;
15
15
  }>;
16
16
  export type DisplayOptions = Partial<Omit<PixiRendererInitOptions, "view">> & {
@@ -34,8 +34,8 @@ export declare class Display {
34
34
  getClipIdByCursorPosition(cursorX: number, cursorY: number): string | null;
35
35
  destroy(): void;
36
36
  serialize(): {
37
- height: number;
38
37
  width: number;
38
+ height: number;
39
39
  backgroundColor: string;
40
40
  };
41
41
  static deserialize(data: object): Display;
@@ -3,9 +3,13 @@ import { FFMessageLoadConfig } from '../../libs/ffmpeg/types';
3
3
  declare class FFmpeg {
4
4
  private static instance;
5
5
  private ffmpeg;
6
+ private coreURL;
7
+ private wasmURL;
6
8
  private constructor();
7
9
  static getInstance(): FFmpeg;
8
10
  initialize(config: FFMessageLoadConfig): Promise<boolean | undefined>;
9
11
  getFFmpeg(): RootFFmpeg;
12
+ createCustomInstance(): Promise<boolean>;
13
+ reload(): Promise<void>;
10
14
  }
11
15
  export { FFmpeg };
@@ -26,8 +26,8 @@ export declare const LayerSchema: z.ZodObject<{
26
26
  type: z.ZodLiteral<"transition">;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  name: string;
29
- type: "transition";
30
29
  id: string;
30
+ type: "transition";
31
31
  startClipId: string;
32
32
  endClipId: string;
33
33
  inDuration: number;
@@ -35,8 +35,8 @@ export declare const LayerSchema: z.ZodObject<{
35
35
  transitionSrc: string;
36
36
  }, {
37
37
  name: string;
38
- type: "transition";
39
38
  id: string;
39
+ type: "transition";
40
40
  startClipId: string;
41
41
  endClipId: string;
42
42
  inDuration: number;
@@ -47,8 +47,8 @@ export declare const LayerSchema: z.ZodObject<{
47
47
  id: string;
48
48
  transitions: {
49
49
  name: string;
50
- type: "transition";
51
50
  id: string;
51
+ type: "transition";
52
52
  startClipId: string;
53
53
  endClipId: string;
54
54
  inDuration: number;
@@ -63,8 +63,8 @@ export declare const LayerSchema: z.ZodObject<{
63
63
  id: string;
64
64
  transitions: {
65
65
  name: string;
66
- type: "transition";
67
66
  id: string;
67
+ type: "transition";
68
68
  startClipId: string;
69
69
  endClipId: string;
70
70
  inDuration: number;
@@ -119,8 +119,8 @@ export declare class Layer {
119
119
  id: string;
120
120
  transitions: {
121
121
  name: string;
122
- type: "transition";
123
122
  id: string;
123
+ type: "transition";
124
124
  startClipId: string;
125
125
  endClipId: string;
126
126
  inDuration: number;
@@ -11,16 +11,16 @@ export declare const LibrarySchema: z.ZodObject<{
11
11
  mimeType: z.ZodOptional<z.ZodString>;
12
12
  customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- type: string;
15
14
  id: string;
15
+ type: string;
16
16
  filename: string;
17
17
  permanentUrl?: string | undefined;
18
18
  hash?: string | undefined;
19
19
  mimeType?: string | undefined;
20
20
  customData?: [string, unknown][] | undefined;
21
21
  }, {
22
- type: string;
23
22
  id: string;
23
+ type: string;
24
24
  filename: string;
25
25
  permanentUrl?: string | undefined;
26
26
  hash?: string | undefined;
@@ -75,8 +75,8 @@ export declare const LibrarySchema: z.ZodObject<{
75
75
  }[];
76
76
  }[];
77
77
  media: {
78
- type: string;
79
78
  id: string;
79
+ type: string;
80
80
  filename: string;
81
81
  permanentUrl?: string | undefined;
82
82
  hash?: string | undefined;
@@ -95,8 +95,8 @@ export declare const LibrarySchema: z.ZodObject<{
95
95
  }[];
96
96
  }[];
97
97
  media: {
98
- type: string;
99
98
  id: string;
99
+ type: string;
100
100
  filename: string;
101
101
  permanentUrl?: string | undefined;
102
102
  hash?: string | undefined;
@@ -133,8 +133,8 @@ export declare class Library {
133
133
  }[];
134
134
  }[];
135
135
  media: {
136
- type: string;
137
136
  id: string;
137
+ type: string;
138
138
  filename: string;
139
139
  permanentUrl?: string | undefined;
140
140
  hash?: string | undefined;
@@ -10,16 +10,16 @@ export declare const MediaDataSchema: z.ZodObject<{
10
10
  mimeType: z.ZodOptional<z.ZodString>;
11
11
  customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
12
12
  }, "strip", z.ZodTypeAny, {
13
- type: string;
14
13
  id: string;
14
+ type: string;
15
15
  filename: string;
16
16
  permanentUrl?: string | undefined;
17
17
  hash?: string | undefined;
18
18
  mimeType?: string | undefined;
19
19
  customData?: [string, unknown][] | undefined;
20
20
  }, {
21
- type: string;
22
21
  id: string;
22
+ type: string;
23
23
  filename: string;
24
24
  permanentUrl?: string | undefined;
25
25
  hash?: string | undefined;
@@ -60,7 +60,9 @@ export declare class MediaData {
60
60
  setAllCustomData(data: Map<string, unknown>): void;
61
61
  getAllCustomData(): Map<string, unknown> | undefined;
62
62
  readFileIntoBlob(file: File, mimeType?: string): Promise<Blob>;
63
- checkCompatibilityOrTranscode(filePath: string, blobUrl: string, hasAudio: boolean): Promise<boolean>;
63
+ private internalFFmpegTranscode;
64
+ private transcode;
65
+ private checkCompatibilityOrTranscode;
64
66
  hookM3U8(file: File | string | Uint8Array, mimeType: string | undefined): Promise<{
65
67
  status: boolean;
66
68
  data: Uint8Array;
@@ -97,9 +99,10 @@ export declare class MediaData {
97
99
  load(file: File | string | Uint8Array, mimeType?: string): Promise<void>;
98
100
  setPermanentUrl(url: string | null): void;
99
101
  getHash(): string | undefined;
102
+ waitForStatus(status: MediaDataStatus, checkIntervalMS?: number, timeoutMS?: number): Promise<boolean>;
100
103
  serialize(): {
101
- type: string;
102
104
  id: string;
105
+ type: string;
103
106
  filename: string;
104
107
  permanentUrl?: string | undefined;
105
108
  hash?: string | undefined;
@@ -2,6 +2,7 @@ export declare enum MediaDataStatus {
2
2
  NONE = "none",
3
3
  ERROR = "error",
4
4
  LOADING = "loading",
5
+ TRANSCODING = "transcoding",
5
6
  FILMSTRIP = "filmstrip",
6
7
  READY = "ready"
7
8
  }
@@ -366,7 +366,7 @@ export declare class SubtitlesManager {
366
366
  private restartTween;
367
367
  update(currentTime: number): void;
368
368
  convertSRTToSubtitles(srt: string): Subtitles;
369
- extractSubtitlesFromVideo(mediaDataId: string): Promise<string> | "";
369
+ extractSubtitlesFromVideo(mediaDataId: string): "" | Promise<string>;
370
370
  hitTest(point: {
371
371
  cursorX: number;
372
372
  cursorY: number;
@@ -26,8 +26,8 @@ export declare const TimelineSchema: z.ZodObject<{
26
26
  type: z.ZodLiteral<"transition">;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  name: string;
29
- type: "transition";
30
29
  id: string;
30
+ type: "transition";
31
31
  startClipId: string;
32
32
  endClipId: string;
33
33
  inDuration: number;
@@ -35,8 +35,8 @@ export declare const TimelineSchema: z.ZodObject<{
35
35
  transitionSrc: string;
36
36
  }, {
37
37
  name: string;
38
- type: "transition";
39
38
  id: string;
39
+ type: "transition";
40
40
  startClipId: string;
41
41
  endClipId: string;
42
42
  inDuration: number;
@@ -47,8 +47,8 @@ export declare const TimelineSchema: z.ZodObject<{
47
47
  id: string;
48
48
  transitions: {
49
49
  name: string;
50
- type: "transition";
51
50
  id: string;
51
+ type: "transition";
52
52
  startClipId: string;
53
53
  endClipId: string;
54
54
  inDuration: number;
@@ -63,8 +63,8 @@ export declare const TimelineSchema: z.ZodObject<{
63
63
  id: string;
64
64
  transitions: {
65
65
  name: string;
66
- type: "transition";
67
66
  id: string;
67
+ type: "transition";
68
68
  startClipId: string;
69
69
  endClipId: string;
70
70
  inDuration: number;
@@ -84,8 +84,8 @@ export declare const TimelineSchema: z.ZodObject<{
84
84
  id: string;
85
85
  transitions: {
86
86
  name: string;
87
- type: "transition";
88
87
  id: string;
88
+ type: "transition";
89
89
  startClipId: string;
90
90
  endClipId: string;
91
91
  inDuration: number;
@@ -105,8 +105,8 @@ export declare const TimelineSchema: z.ZodObject<{
105
105
  id: string;
106
106
  transitions: {
107
107
  name: string;
108
- type: "transition";
109
108
  id: string;
109
+ type: "transition";
110
110
  startClipId: string;
111
111
  endClipId: string;
112
112
  inDuration: number;
@@ -168,8 +168,8 @@ export declare class Timeline {
168
168
  id: string;
169
169
  transitions: {
170
170
  name: string;
171
- type: "transition";
172
171
  id: string;
172
+ type: "transition";
173
173
  startClipId: string;
174
174
  endClipId: string;
175
175
  inDuration: number;
@@ -0,0 +1,36 @@
1
+ import { MediaInfo } from "../ffmpeg/types/FFmpeg.types";
2
+ export interface TranscodeMediaDetails {
3
+ mediaInfo?: MediaInfo;
4
+ mimeType?: string;
5
+ url?: string;
6
+ fileName?: string;
7
+ }
8
+ export interface TranscodeResult {
9
+ source: Uint8Array | URL;
10
+ mimeType?: string;
11
+ extension?: string;
12
+ }
13
+ export interface TranscodeSupportType {
14
+ mimeType: string;
15
+ hasAlpha: boolean;
16
+ }
17
+ export interface TranscodeProgressInfo {
18
+ state: string;
19
+ progress: number;
20
+ }
21
+ export declare enum TranscodeControlStateEnum {
22
+ RUN = "RUN",
23
+ CANCEL = "CANCEL"
24
+ }
25
+ export interface TranscodeControl {
26
+ state: TranscodeControlStateEnum;
27
+ isRead: boolean;
28
+ }
29
+ export interface ITranscodeProvider {
30
+ init(): Promise<void>;
31
+ destroy(): Promise<void>;
32
+ supportsInput(mediaMetadata: TranscodeMediaDetails): Promise<boolean>;
33
+ supportsOutput(outputType: TranscodeSupportType): Promise<boolean>;
34
+ supportsInputURL(): Promise<boolean>;
35
+ transcode(source: Uint8Array | URL, mediaMetadata: TranscodeMediaDetails, outputType: TranscodeSupportType, control: TranscodeControl, progressCallback?: (progressInfo: TranscodeProgressInfo) => void): Promise<TranscodeResult | null>;
36
+ }
@@ -1 +1 @@
1
- export * from "./TranscodeProviderBase";
1
+ export * from "./ITranscodeProvider";