@rendley/sdk 1.9.1 → 1.9.3

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.
@@ -66,6 +66,8 @@ export interface FFMessageInitMuxerData {
66
66
  height: number;
67
67
  framerate: number;
68
68
  codec: string;
69
+ bitrate: number;
70
+ codecRFC: string;
69
71
  }
70
72
  export interface FFMessageExecData {
71
73
  args: string[];
@@ -98,7 +98,7 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
98
98
  strokeThickness: number;
99
99
  padding: number[];
100
100
  private isDirty;
101
- protected animationColor: string | null;
101
+ protected animationColor: string;
102
102
  constructor(options: TextClipStyleOptions);
103
103
  setDirty(): void;
104
104
  setStrokeColor(strokeColor: string): void;
@@ -111,8 +111,8 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
111
111
  setWordWrapWidth(wordWrapWidth: number | null): void;
112
112
  setColor(color: string): void;
113
113
  getColor(): string;
114
- setAnimationColor(color: string | null): void;
115
- getAnimationColor(): string | null;
114
+ setAnimationColor(color: string): void;
115
+ getAnimationColor(): string;
116
116
  setFontWeight(fontWeight: TextStyleFontWeight): void;
117
117
  getFontWeight(): "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
118
118
  setFontFamily(fontFamily: string): void;
@@ -47,7 +47,8 @@ export declare enum EventsEnum {
47
47
  UNDO_REDO_CHANGED = "undo:redo:changed",
48
48
  UNDO_PERFORMED = "undo:performed",
49
49
  REDO_PERFORMED = "redo:performed",
50
- UNDO_PROCESS_CUSTOM = "undo:process:custom"
50
+ UNDO_PROCESS_CUSTOM = "undo:process:custom",
51
+ PROJECT_ID_CHANGED = "project:id:changed"
51
52
  }
52
53
  export type EventPayloadMap = {
53
54
  [EventsEnum.READY]: undefined;
@@ -210,6 +211,9 @@ export type EventPayloadMap = {
210
211
  undoRecord: UndoRecord;
211
212
  redoGroup: UndoGroup;
212
213
  };
214
+ [EventsEnum.PROJECT_ID_CHANGED]: {
215
+ projectId: string;
216
+ };
213
217
  };
214
218
  type EventEmitterValidEventType<T> = T extends undefined ? () => void : (payload: T) => void;
215
219
  export type EventEmitterValidEventTypes = {
@@ -120,6 +120,7 @@ export declare class Library {
120
120
  addSubtitles(subtitles: Subtitles): string;
121
121
  removeSubtitles(id: string): void;
122
122
  getSubtitlesById(id: string): Subtitles | undefined;
123
+ getSubtitlesIds(): string[];
123
124
  serialize(): {
124
125
  subtitles: {
125
126
  id: string;
@@ -1,6 +1,7 @@
1
1
  import { ExportOptions, ExportResult } from ".";
2
2
  export declare class Renderer {
3
3
  private rendering;
4
+ private watermarkSprite;
4
5
  constructor();
5
6
  isRendering(): boolean;
6
7
  private generateAudioMix;
@@ -0,0 +1,33 @@
1
+ import { MediaInfo } from "../ffmpeg/types/FFmpeg.types";
2
+ export interface MediaMetadata {
3
+ mediaInfo?: MediaInfo;
4
+ mimeType?: string;
5
+ url?: string;
6
+ }
7
+ export interface TranscodeResult {
8
+ source: Uint8Array | URL;
9
+ mimeType?: string;
10
+ extension?: string;
11
+ }
12
+ export interface SupportType {
13
+ mimeType: string;
14
+ hasAlpha: boolean;
15
+ }
16
+ export interface ProgressInfo {
17
+ state: string;
18
+ progress: number;
19
+ }
20
+ export declare enum ControlState {
21
+ RUN = "RUN",
22
+ CANCEL = "CANCEL"
23
+ }
24
+ export interface Control {
25
+ state: ControlState;
26
+ isRead: boolean;
27
+ }
28
+ export declare abstract class TranscodeProviderBase {
29
+ abstract supportsInput(mediaMetadata: MediaMetadata): Promise<boolean>;
30
+ abstract supportsOutput(outputType: SupportType): Promise<boolean>;
31
+ abstract supportsURLs(): Promise<boolean>;
32
+ abstract transcode(source: Uint8Array | URL, mediaMetadata: MediaMetadata, outputType: SupportType, control: Control, progressCallback?: (progressInfo: ProgressInfo) => void): Promise<TranscodeResult>;
33
+ }
@@ -0,0 +1 @@
1
+ export * from "./TranscodeProviderBase";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rendley/sdk",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "license": "LICENSE",
5
5
  "author": "Onix Technologies",
6
6
  "homepage": "https://rendley.com",