@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 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: string;
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>;
@@ -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;