Function JS2Video

  • JS2Video Component

    Parameters

    • props: {
          autoPlay?: boolean;
          controlsClassName?: string;
          enableUnsecureMode?: boolean;
          hideExportButton?: boolean;
          iconStrokeWidth?: number;
          loop?: boolean;
          onAfterExport?: any;
          onBeforeExport?: any;
          onLoading?: any;
          params?: any;
          templateUrl: string;
          videoFilePrefix?: string;
      }

      Component props

      • OptionalautoPlay?: boolean

        Play video immediately after loading? Default: false.

      • OptionalcontrolsClassName?: string

        Tailwind classes for the controls component.

      • OptionalenableUnsecureMode?: boolean

        Enables the template to be loaded and executed from outside an iframe. Use with caution, and only set to 'true' if you trust the template code as it enables code execution on the current page. Default: false.

      • OptionalhideExportButton?: boolean

        Hide the export buttons? Default: false.

      • OptionaliconStrokeWidth?: number

        Stroke width for control icons.

      • Optionalloop?: boolean

        Loop the video? Default: false.

      • OptionalonAfterExport?: any

        Called after export.

      • OptionalonBeforeExport?: any

        Called before export.

      • OptionalonLoading?: any

        OnLoading callback function.

      • Optionalparams?: any

        Video template params. Default; {}.

      • templateUrl: string

        URL to the video template.

      • OptionalvideoFilePrefix?: string

        String to prefix exported video file names with. default: js2video.

    Returns JSX.Element

    • The video template preview wrapped a context