@rendley/sdk 1.11.13 → 1.11.15

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
@@ -1,11 +1,12 @@
1
1
  import * as PIXI from "pixi.js";
2
+ import { z } from "zod";
2
3
  import { BackgroundTimer } from "./modules/background-timer/background-timer";
3
4
  import { CustomClip } from "./modules/clip/clips/custom/CustomClip";
4
5
  import { Display, DisplayOptions } from "./modules/display/Display";
5
6
  import { EventEmitter } from "./modules/event-emitter";
6
7
  import { FontRegistry } from "./modules/font-registry";
7
8
  import { Library, LibrarySetupData } from "./modules/library";
8
- import { Settings, VideoCodec } from "./modules/settings";
9
+ import { Settings, SettingsSchema, VideoCodec } from "./modules/settings";
9
10
  import { StorageProviderBase } from "./modules/storage";
10
11
  import { StorageController } from "./modules/storage/StorageController";
11
12
  import { SubtitlesManager } from "./modules/subtitles";
@@ -42,6 +43,7 @@ export interface EngineOptions {
42
43
  transcoder?: ITranscodeProvider;
43
44
  ffmpeg?: FFmpegOptions;
44
45
  enableUndoRedo?: boolean;
46
+ forcedSettings?: Partial<z.infer<typeof SettingsSchema>>;
45
47
  onSetupLibrary?: (data: LibrarySetupData) => Promise<void>;
46
48
  }
47
49
  type CustomClipConstructor<T extends CustomClip = CustomClip> = {
@@ -72,6 +74,7 @@ export declare class Engine {
72
74
  private createdAt;
73
75
  private onSetupLibrary?;
74
76
  private initOptions;
77
+ private forcedSettings?;
75
78
  private ready;
76
79
  private readonly renderer;
77
80
  private readonly backgroundTimer;
@@ -119,6 +122,7 @@ export declare class Engine {
119
122
  hasCustomClipType(typeEnum: string): boolean;
120
123
  reset(): void;
121
124
  isReady(): boolean;
125
+ isSafeToSerialize(): boolean;
122
126
  serialize(): {
123
127
  display: {
124
128
  width: number;
@@ -256,6 +260,10 @@ export declare class Engine {
256
260
  } | undefined;
257
261
  settings?: {
258
262
  m3u8MaxResolution: [number, number];
263
+ clipAudioStoreSamples: boolean;
264
+ clipAudioSampleRate: number;
265
+ clipAudioSampleForceMono: boolean;
266
+ clipVideoStoreSamples: boolean;
259
267
  renderShowPreview: boolean;
260
268
  renderMaxQueueSize: number;
261
269
  renderThrottleFactor: number;
@@ -273,6 +281,7 @@ export declare class Engine {
273
281
  encoderCrf: number;
274
282
  encoderForcedCodecRFCString: string;
275
283
  encoderPreferredAcceleration: import("./modules/settings").PreferredAcceleration;
284
+ encoderKeyframeInterval: number;
276
285
  subtitlesScaleOnResize: boolean;
277
286
  subtitlesAutoWrapOnResize: boolean;
278
287
  viewAutoLayoutOnResize: import("./modules/settings").AutoLayoutMode;