@rendley/sdk 1.14.0 → 1.14.1

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.
@@ -343,6 +343,17 @@ export declare const LibrarySchema: z.ZodObject<{
343
343
  wordTimings?: number[] | undefined;
344
344
  }[];
345
345
  }[];
346
+ media: {
347
+ type: string;
348
+ id: string;
349
+ filename: string;
350
+ name?: string | undefined;
351
+ permanentUrl?: string | undefined;
352
+ hash?: string | undefined;
353
+ mimeType?: string | undefined;
354
+ customData?: [string, unknown][] | undefined;
355
+ placeholderClipIds?: string[] | undefined;
356
+ }[];
346
357
  transitions: {
347
358
  name: string;
348
359
  properties: {
@@ -401,17 +412,6 @@ export declare const LibrarySchema: z.ZodObject<{
401
412
  blendMode?: import('../../index').BlendModeEnum | undefined;
402
413
  padding?: number | undefined;
403
414
  }[];
404
- media: {
405
- type: string;
406
- id: string;
407
- filename: string;
408
- name?: string | undefined;
409
- permanentUrl?: string | undefined;
410
- hash?: string | undefined;
411
- mimeType?: string | undefined;
412
- customData?: [string, unknown][] | undefined;
413
- placeholderClipIds?: string[] | undefined;
414
- }[];
415
415
  customData?: [string, unknown][] | undefined;
416
416
  }, {
417
417
  subtitles: {
@@ -425,6 +425,17 @@ export declare const LibrarySchema: z.ZodObject<{
425
425
  wordTimings?: number[] | undefined;
426
426
  }[];
427
427
  }[];
428
+ media: {
429
+ type: string;
430
+ id: string;
431
+ filename: string;
432
+ name?: string | undefined;
433
+ permanentUrl?: string | undefined;
434
+ hash?: string | undefined;
435
+ mimeType?: string | undefined;
436
+ customData?: [string, unknown][] | undefined;
437
+ placeholderClipIds?: string[] | undefined;
438
+ }[];
428
439
  transitions: {
429
440
  name: string;
430
441
  properties: {
@@ -483,17 +494,6 @@ export declare const LibrarySchema: z.ZodObject<{
483
494
  blendMode?: import('../../index').BlendModeEnum | undefined;
484
495
  padding?: number | undefined;
485
496
  }[];
486
- media: {
487
- type: string;
488
- id: string;
489
- filename: string;
490
- name?: string | undefined;
491
- permanentUrl?: string | undefined;
492
- hash?: string | undefined;
493
- mimeType?: string | undefined;
494
- customData?: [string, unknown][] | undefined;
495
- placeholderClipIds?: string[] | undefined;
496
- }[];
497
497
  customData?: [string, unknown][] | undefined;
498
498
  }>;
499
499
  export declare class Library {
@@ -582,6 +582,17 @@ export declare class Library {
582
582
  wordTimings?: number[] | undefined;
583
583
  }[];
584
584
  }[];
585
+ media: {
586
+ type: string;
587
+ id: string;
588
+ filename: string;
589
+ name?: string | undefined;
590
+ permanentUrl?: string | undefined;
591
+ hash?: string | undefined;
592
+ mimeType?: string | undefined;
593
+ customData?: [string, unknown][] | undefined;
594
+ placeholderClipIds?: string[] | undefined;
595
+ }[];
585
596
  transitions: {
586
597
  name: string;
587
598
  properties: {
@@ -640,17 +651,6 @@ export declare class Library {
640
651
  blendMode?: import('../../index').BlendModeEnum | undefined;
641
652
  padding?: number | undefined;
642
653
  }[];
643
- media: {
644
- type: string;
645
- id: string;
646
- filename: string;
647
- name?: string | undefined;
648
- permanentUrl?: string | undefined;
649
- hash?: string | undefined;
650
- mimeType?: string | undefined;
651
- customData?: [string, unknown][] | undefined;
652
- placeholderClipIds?: string[] | undefined;
653
- }[];
654
654
  customData?: [string, unknown][] | undefined;
655
655
  };
656
656
  static deserialize(data: object): Library;
@@ -110,7 +110,6 @@ export declare class MediaData {
110
110
  getFilmstripState(): MediaProcessStatusEnum;
111
111
  getFilmstripData(): IFilmstripData[];
112
112
  getFilmstripDataRange(start: number, end: number): IFilmstripData[];
113
- private resampleLinear;
114
113
  private hasSvgXmlSignature;
115
114
  private normalizeSvgMetadata;
116
115
  private isWorkerFSMountedPath;
@@ -118,6 +117,8 @@ export declare class MediaData {
118
117
  private ensureWorkerFSRoot;
119
118
  private cleanupWorkerFSMount;
120
119
  private mountInputToWorkerFS;
120
+ private deinterleaveAudioSamples;
121
+ private mixToMono;
121
122
  private extractAudioSamples;
122
123
  getAudioSamples(startTime: number, duration?: number): Float32Array[] | null;
123
124
  private checkPlaceholderClips;
@@ -14,5 +14,5 @@ interface CheckVideoCompatibilityOrTranscodeOptions {
14
14
  unlockMediaInfo: () => void;
15
15
  timeoutMs?: number;
16
16
  }
17
- export declare function checkVideoCompatibilityOrTranscode({ blobUrl, filePath, outputPath, getData, info, fileName, permanentUrl, mimeType, mediaDataId, waitForMediaInfoUnlock, lockMediaInfo, unlockMediaInfo, timeoutMs, }: CheckVideoCompatibilityOrTranscodeOptions): Promise<boolean>;
17
+ export declare function checkVideoCompatibilityOrTranscode({ blobUrl, filePath, mediaDataId, getData, info, fileName, outputPath, permanentUrl, mimeType, waitForMediaInfoUnlock, lockMediaInfo, unlockMediaInfo, timeoutMs, }: CheckVideoCompatibilityOrTranscodeOptions): Promise<boolean>;
18
18
  export {};
@@ -7,7 +7,7 @@ interface InternalFFmpegTranscodeOptions {
7
7
  lockMediaInfo: () => void;
8
8
  unlockMediaInfo: () => void;
9
9
  }
10
- export declare function internalFFmpegTranscode({ filePath, outputPath, mediaDataId, waitForMediaInfoUnlock, lockMediaInfo, unlockMediaInfo, }: InternalFFmpegTranscodeOptions): Promise<boolean>;
10
+ export declare function internalFFmpegTranscode({ filePath, mediaDataId, outputPath, waitForMediaInfoUnlock, lockMediaInfo, unlockMediaInfo, }: InternalFFmpegTranscodeOptions): Promise<boolean>;
11
11
  interface TranscodeMediaOptions {
12
12
  filePath: string;
13
13
  outputPath?: string;
@@ -21,5 +21,5 @@ interface TranscodeMediaOptions {
21
21
  lockMediaInfo: () => void;
22
22
  unlockMediaInfo: () => void;
23
23
  }
24
- export declare function transcodeMedia({ filePath, outputPath, getData, info, fileName, permanentUrl, mimeType, mediaDataId, waitForMediaInfoUnlock, lockMediaInfo, unlockMediaInfo, }: TranscodeMediaOptions): Promise<boolean>;
24
+ export declare function transcodeMedia({ filePath, mediaDataId, getData, info, fileName, outputPath, permanentUrl, mimeType, waitForMediaInfoUnlock, lockMediaInfo, unlockMediaInfo, }: TranscodeMediaOptions): Promise<boolean>;
25
25
  export {};
@@ -0,0 +1 @@
1
+ export declare function getDefaultTranscodeOutputPath(filePath: string, mediaDataId: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rendley/sdk",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "license": "LICENSE",
5
5
  "author": "Onix Technologies",
6
6
  "homepage": "https://rendleysdk.com",