@rendley/sdk - v1.14.0
    Preparing search index...

    Class Library

    Index

    Constructors

    Properties

    builtInEffects: Record<string, EffectData> = {}
    effects: Record<string, EffectData>
    filters: Record<string, FilterData>
    media: Record<string, MediaData>
    subtitles: Record<string, Subtitles>
    transitions: Record<string, TransitionData>

    Methods

    • Parameters

      • source: string | Uint8Array<ArrayBufferLike> | File
      • OptionalmimeType: string
      • Optionalfilename: string

      Returns Promise<null | string>

    • Parameters

      • data: any

      Returns Promise<string>

    • Returns void

    • Returns Promise<void>

    • Parameters

      • mediaId: string

      Returns Promise<void>

    • Parameters

      • id: string

      Returns Promise<void>

    • Returns Promise<void>

    • Parameters

      • mediaId: string
      • audioTrackIndex: number = 0

      Returns Promise<null | string>

    • Returns undefined | Map<string, unknown>

    • Returns string[]

    • Returns string[]

    • Parameters

      • key: string

      Returns unknown

    • Returns string[]

    • Parameters

      • id: string

      Returns undefined | MediaData

    • Returns string[]

    • Parameters

      • id: string

      Returns undefined | Subtitles

    • Returns string[]

    • Returns string[]

    • Parameters

      • key: string

      Returns boolean

    • Returns Promise<void>

    • Returns boolean

    • Parameters

      • file: string | Uint8Array<ArrayBufferLike> | File

      Returns Promise<null | MediaInfo>

    • Parameters

      • id: string

      Returns void

    • Parameters

      • id: string

      Returns void

    • Parameters

      • id: string

      Returns void

    • Parameters

      • id: string

      Returns void

    • Returns Promise<void>

    • Returns void

    • Returns void

    • Returns Promise<void>

    • Returns void

    • Returns void

    • Parameters

      • id: string
      • file: string | Uint8Array<ArrayBufferLike> | File
      • OptionalreplaceOptions: ReplaceMediaOptions

      Returns Promise<boolean>

    • Parameters

      • data: any

      Returns Promise<boolean>

    • Returns {
          customData?: [string, unknown][];
          effects: {
              autoFit?: boolean;
              blendMode?: NORMAL | ADD | SCREEN | MULTIPLY;
              fragmentSrc: string;
              id: string;
              inputTextures?: {
                  mipmap?: OFF | ON;
                  name: string;
                  scaleMode?: NEAREST | LINEAR;
                  url: string;
                  wrapMode?: CLAMP | REPEAT | MIRRORED_REPEAT;
              }[];
              name: string;
              noTransform?: boolean;
              padding?: number;
              properties: {
                  defaultValue: Required<any>;
                  description?: string;
                  initOnly?: boolean;
                  label?: string;
                  max?: number | number[];
                  min?: number | number[];
                  name: string;
                  step?: number | number[];
                  type: PropertyDescriptionTypeEnum;
              }[];
              provider: string;
          }[];
          filters: { id: string; lutUrl: string; name: string; provider: string }[];
          media: {
              customData?: [string, unknown][];
              filename: string;
              hash?: string;
              id: string;
              mimeType?: string;
              name?: string;
              permanentUrl?: string;
              placeholderClipIds?: string[];
              type: string;
          }[];
          subtitles: {
              duration: number;
              id: string;
              language: string;
              textBlocks: {
                  duration: number;
                  text: string;
                  time: number;
                  wordTimings?: number[];
              }[];
          }[];
          transitions: {
              id: string;
              inputTextures?: {
                  mipmap?: OFF
                  | ON;
                  name: string;
                  scaleMode?: NEAREST | LINEAR;
                  url: string;
                  wrapMode?: CLAMP | REPEAT | MIRRORED_REPEAT;
              }[];
              name: string;
              properties: {
                  defaultValue: Required<any>;
                  description?: string;
                  initOnly?: boolean;
                  label?: string;
                  max?: number | number[];
                  min?: number | number[];
                  name: string;
                  step?: number | number[];
                  type: PropertyDescriptionTypeEnum;
              }[];
              provider: string;
              transitionSrc: string;
          }[];
      }

    • Parameters

      • data: Map<string, unknown>

      Returns void

    • Parameters

      • key: string
      • value: unknown
      • overwrite: boolean = true

      Returns boolean

    • Returns Promise<void>

      Use syncAllMedia instead, that will also remove media that are not in the library Stores all media data in the library using the storage controller. Initiates a batch operation, attempts to store each media asynchronously, and ensures that all operations are completed. If any error occurs during the process, it logs the error. Finally, it ends the batch operation.

    • Syncs all media data in the library with the storage controller. Stores all media data in the library using the storage controller. Removes media that are not in the library. Initiates a batch operation, attempts to store each media asynchronously, removes media that are not in the library asynchronously, and ensures that all operations are completed. If any error occurs during the process, it logs the error. Finally, it ends the batch operation.

      Returns Promise<void>

    • Parameters

      • data: object

      Returns Library