@rendley/sdk 1.2.1 → 1.3.0

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,9 @@ 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 { SubtitleManager } from "./modules/subtitleManager";
7
+ import { StorageProviderBase } from "./modules/storage";
8
+ import { StorageController } from "./modules/storage/StorageController";
9
+ import { SubtitlesManager } from "./modules/subtitleManager";
8
10
  import { Timeline } from "./modules/timeline/Timeline";
9
11
  interface EngineLicense {
10
12
  licenseName: string;
@@ -13,6 +15,7 @@ interface EngineLicense {
13
15
  export interface EngineOptions {
14
16
  display?: DisplayOptions;
15
17
  license?: EngineLicense;
18
+ storages?: StorageProviderBase[];
16
19
  }
17
20
  type CustomClipConstructor<T extends CustomClip = CustomClip> = {
18
21
  new (...args: any[]): T;
@@ -23,25 +26,30 @@ export declare class Engine {
23
26
  private timeline;
24
27
  private library;
25
28
  private fontRegistry;
26
- private subtitleManager;
29
+ private subtitlesManager;
30
+ private storageController;
27
31
  readonly events: EventEmitter;
28
32
  private initialized;
29
33
  private rendering;
30
34
  private license?;
35
+ private projectId;
31
36
  private constructor();
32
37
  static getInstance(): Engine;
38
+ hasInstance(): boolean;
33
39
  getFFmpeg(): import("./libs/ffmpeg").FFmpeg;
34
40
  init(options: EngineOptions): Promise<void>;
35
41
  destroy(): void;
42
+ getProjectId(): string;
36
43
  getDisplay(): Display;
37
44
  getTimeline(): Timeline;
38
45
  getLibrary(): Library;
39
46
  getFontRegistry(): FontRegistry;
40
- getSubtitlesManager(): SubtitleManager;
47
+ getSubtitlesManager(): SubtitlesManager;
48
+ getStorageController(): StorageController;
41
49
  isInitialized(): boolean;
42
50
  isRendering(): boolean;
43
51
  private generateMix;
44
- export(path: string): Promise<Blob>;
52
+ export(path?: string): Promise<Blob>;
45
53
  play(): Promise<void>;
46
54
  pause(): Promise<void>;
47
55
  stop(): Promise<void>;
@@ -99,9 +107,38 @@ export declare class Engine {
99
107
  id: string;
100
108
  filename: string;
101
109
  permanentUrl?: string | undefined;
110
+ hash?: string | undefined;
111
+ mimeType?: string | undefined;
102
112
  }[];
103
113
  };
114
+ subtitlesManager: {
115
+ textMode: "full" | "partial";
116
+ highlightAnimation: import("./modules/subtitleManager").HighlightAnimationEnum;
117
+ highlightAnimationSpeed: number;
118
+ mainTextStyle: {
119
+ fontSize?: number | undefined;
120
+ color?: string | undefined;
121
+ fontWeight?: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
122
+ fontFamily?: string | undefined;
123
+ fontStyle?: "normal" | "italic" | "oblique" | undefined;
124
+ wordWrapWidth?: number | null | undefined;
125
+ strokeThickness?: number | undefined;
126
+ strokeColor?: string | undefined;
127
+ };
128
+ highlightTextStyle: {
129
+ color?: string | undefined;
130
+ fontSize?: number | undefined;
131
+ fontWeight?: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
132
+ fontFamily?: string | undefined;
133
+ fontStyle?: "normal" | "italic" | "oblique" | undefined;
134
+ backgroundColor?: string | undefined;
135
+ backgroundPadding?: number | undefined;
136
+ strokeThickness?: number | undefined;
137
+ strokeColor?: string | undefined;
138
+ };
139
+ };
104
140
  version?: string | undefined;
141
+ projectId?: string | undefined;
105
142
  };
106
143
  static deserialize(data: object): Promise<Engine | undefined>;
107
144
  }