@rendley/sdk 1.8.2 → 1.8.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.
- package/dist/Engine.d.ts +23 -2
- package/dist/config/config.d.ts +3 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +4 -0
- package/dist/modules/clip/clips/subtitles/SubtitlesClip.d.ts +4 -0
- package/dist/modules/display/Display.d.ts +1 -1
- package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +10 -0
- package/dist/modules/settings/Settings.d.ts +63 -0
- package/dist/modules/storage/StorageProviderBase.d.ts +1 -0
- package/dist/modules/subtitles/SubtitleManager.d.ts +63 -2
- package/dist/modules/undo/UndoManager.types.d.ts +10 -0
- package/dist/types/auth.types.d.ts +14 -0
- package/dist/types/license.types.d.ts +5 -0
- package/dist/utils/browser/fetchWithRetries.d.ts +1 -0
- package/package.json +1 -1
package/dist/Engine.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Display, DisplayOptions } from "./modules/display/Display";
|
|
|
4
4
|
import { EventEmitter } from "./modules/event-emitter";
|
|
5
5
|
import { FontRegistry } from "./modules/font-registry";
|
|
6
6
|
import { Library } from "./modules/library";
|
|
7
|
-
import { Settings } from "./modules/settings";
|
|
7
|
+
import { Settings, VideoCodec } from "./modules/settings";
|
|
8
8
|
import { StorageProviderBase } from "./modules/storage";
|
|
9
9
|
import { StorageController } from "./modules/storage/StorageController";
|
|
10
10
|
import { SubtitlesManager } from "./modules/subtitles";
|
|
@@ -16,8 +16,10 @@ export declare enum ExportVideoType {
|
|
|
16
16
|
VIDEO_AUDIO = "video_audio"
|
|
17
17
|
}
|
|
18
18
|
interface EngineLicense {
|
|
19
|
+
enableRemoteValidation?: boolean;
|
|
20
|
+
isSublicense?: boolean;
|
|
19
21
|
licenseName: string;
|
|
20
|
-
licenseKey
|
|
22
|
+
licenseKey?: string;
|
|
21
23
|
}
|
|
22
24
|
export interface ExportResult {
|
|
23
25
|
blob: Blob;
|
|
@@ -42,6 +44,8 @@ type CustomClipConstructor<T extends CustomClip = CustomClip> = {
|
|
|
42
44
|
};
|
|
43
45
|
export declare class Engine {
|
|
44
46
|
private static instance?;
|
|
47
|
+
static readonly currentVersion = "0.1.2";
|
|
48
|
+
static projectVersion: string;
|
|
45
49
|
private display;
|
|
46
50
|
private timeline;
|
|
47
51
|
private library;
|
|
@@ -56,11 +60,13 @@ export declare class Engine {
|
|
|
56
60
|
private license?;
|
|
57
61
|
private projectId;
|
|
58
62
|
private isDestroying;
|
|
63
|
+
private createdAt;
|
|
59
64
|
private constructor();
|
|
60
65
|
static getInstance(): Engine;
|
|
61
66
|
hasInstance(): boolean;
|
|
62
67
|
getFFmpeg(): import("./libs/ffmpeg").FFmpeg;
|
|
63
68
|
init(options: EngineOptions): Promise<void>;
|
|
69
|
+
private getLicenseCredentials;
|
|
64
70
|
destroy(everything?: boolean): Promise<void>;
|
|
65
71
|
getProjectId(): string;
|
|
66
72
|
getDisplay(): Display;
|
|
@@ -141,8 +147,10 @@ export declare class Engine {
|
|
|
141
147
|
}[];
|
|
142
148
|
};
|
|
143
149
|
version?: string | undefined;
|
|
150
|
+
createdAt?: number | undefined;
|
|
144
151
|
projectId?: string | undefined;
|
|
145
152
|
subtitlesManager?: {
|
|
153
|
+
scale: number;
|
|
146
154
|
textMode: "full" | "partial";
|
|
147
155
|
highlightAnimation: import("./modules/subtitles").HighlightAnimationEnum;
|
|
148
156
|
highlightAnimationSpeed: number;
|
|
@@ -175,12 +183,25 @@ export declare class Engine {
|
|
|
175
183
|
strokeColor: string;
|
|
176
184
|
padding: number;
|
|
177
185
|
};
|
|
186
|
+
position?: [number, number] | undefined;
|
|
178
187
|
} | undefined;
|
|
179
188
|
settings?: {
|
|
180
189
|
decoderPreferredAcceleration: import("./modules/settings").PreferredAcceleration;
|
|
181
190
|
encoderPreferredAcceleration: import("./modules/settings").PreferredAcceleration;
|
|
182
191
|
m3u8MaxResolution: [number, number];
|
|
183
192
|
showRenderPreview: boolean;
|
|
193
|
+
encoderCodec: VideoCodec;
|
|
194
|
+
encoderUseWebCodecs: boolean;
|
|
195
|
+
encoderUseAlpha: boolean;
|
|
196
|
+
encoderBitrate: number;
|
|
197
|
+
encoderBitrateMode: import("./modules/settings").BitrateMode;
|
|
198
|
+
encoderPerformanceMode: import("./modules/settings").PerformanceMode;
|
|
199
|
+
encoderDeadline: number;
|
|
200
|
+
encoderCrf: number;
|
|
201
|
+
encoderForcedCodecRFCString: string;
|
|
202
|
+
subtitlesScaleOnResize: boolean;
|
|
203
|
+
subtitlesAutoWrapOnResize: boolean;
|
|
204
|
+
viewAutoLayoutOnResize: import("./modules/settings").AutoLayoutMode;
|
|
184
205
|
} | undefined;
|
|
185
206
|
};
|
|
186
207
|
static deserialize(data: object): Promise<Engine | undefined>;
|
package/dist/config/config.d.ts
CHANGED
|
@@ -3,3 +3,6 @@ export declare const BACKGROUND_SPRITE_NAME = "CANVAS_BACKGROUND_SPRITE";
|
|
|
3
3
|
export declare const STAGE_CONTAINER_NAME = "STAGE_CONTAINER";
|
|
4
4
|
export declare const RENDLEY_CDN: any;
|
|
5
5
|
export declare const FFMPEG_CDN: string;
|
|
6
|
+
export declare const RENDLEY_API_BASE_URL = "https://api.rendley.com/sdk/v1";
|
|
7
|
+
export declare const LICENSE_LOCAL_STORAGE_KEY = "license";
|
|
8
|
+
export declare const getLicenseEndpoint: (licenseName: string, isSublicense?: boolean) => string;
|