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

    Class SubtitlesManager

    Index

    Constructors

    Methods

    • Returns void

    • Parameters

      • mediaDataId: string

      Returns Promise<string> | ""

    • Returns {
          backgroundColor: string;
          backgroundCornerRadius: number;
          backgroundPadding: number;
          color: string;
          fontFamily: string;
          fontSize: number;
          fontStyle: "normal" | "italic" | "oblique";
          fontWeight:
              | "normal"
              | "bold"
              | "bolder"
              | "lighter"
              | "100"
              | "200"
              | "300"
              | "400"
              | "500"
              | "600"
              | "700"
              | "800"
              | "900";
          padding: number;
          strokeColor: string;
          strokeThickness: number;
      }

    • Returns Text

    • Returns {
          backgroundColor: string;
          backgroundCornerRadius: number;
          backgroundPadding: number;
          color: string;
          fontFamily: string;
          fontSize: number;
          fontStyle: "normal" | "italic" | "oblique";
          fontWeight:
              | "normal"
              | "bold"
              | "bolder"
              | "lighter"
              | "100"
              | "200"
              | "300"
              | "400"
              | "500"
              | "600"
              | "700"
              | "800"
              | "900";
          leading: number;
          padding: number;
          strokeColor: string;
          strokeThickness: number;
          wordWrap: boolean;
          wordWrapWidth: number;
      }

    • Returns number[]

    • Returns number

    • Returns "partial" | "full"

    • Parameters

      • point: { cursorX: number; cursorY: number }

      Returns boolean

    • Returns void

    • Parameters

      • oldWidth: number
      • oldHeight: number
      • newWidth: number
      • newHeight: number

      Returns void

    • Returns {
          highlightAnimation: HighlightAnimationEnum;
          highlightAnimationSpeed: number;
          highlightTextStyle: {
              backgroundColor: string;
              backgroundCornerRadius: number;
              backgroundPadding: number;
              color: string;
              fontFamily: string;
              fontSize: number;
              fontStyle: "normal" | "italic" | "oblique";
              fontWeight:
                  | "normal"
                  | "bold"
                  | "bolder"
                  | "lighter"
                  | "100"
                  | "200"
                  | "300"
                  | "400"
                  | "500"
                  | "600"
                  | "700"
                  | "800"
                  | "900";
              padding: number;
              strokeColor: string;
              strokeThickness: number;
          };
          mainTextStyle: {
              backgroundColor: string;
              backgroundCornerRadius: number;
              backgroundPadding: number;
              color: string;
              fontFamily: string;
              fontSize: number;
              fontStyle: "normal"
              | "italic"
              | "oblique";
              fontWeight:
                  | "normal"
                  | "bold"
                  | "bolder"
                  | "lighter"
                  | "100"
                  | "200"
                  | "300"
                  | "400"
                  | "500"
                  | "600"
                  | "700"
                  | "800"
                  | "900";
              leading: number;
              padding: number;
              strokeColor: string;
              strokeThickness: number;
              wordWrap: boolean;
              wordWrapWidth: number;
          };
          position?: [number, number];
          scale: number;
          textMode: "partial" | "full";
      }

    • Parameters

      Returns void

    • Parameters

      • x: number
      • y: number

      Returns void

    • Parameters

      • scale: number

      Returns void

    • Parameters

      • mode: "partial" | "full"

      Returns void

    • Parameters

      • currentTime: number

      Returns void

    • Parameters

      • subtitleId: string

      Returns void