Skip to main content

Installation

To use the SDK in your website, simply add the following script tag to your HTML pages:

<script src="https://storage.googleapis.com/sx-master/sx-editor-sdk/dev.min.js"></script>

Once TesseractEdit has been loaded to your DOM,, you can run TesseractEdit as a standalone piece or with recorder

  • To use editor along with recorder add the below configuration in your masterConfig

  • To use TesseractEdit as standalone bind your url to masterconfig and initialize

 const sdk = await TesseractEdit.ui.config(clientId, clientSecret);

const RootElement = document.getElementById("root");
const RootEditElement = document.getElementById("root-edit");

const InputProperties = {
bucketDir: "<buketDir>",
fileName: "video.mp4",
};

const OutputProperties = {
bucketDir: "<buketDir>",
fileName: "video.mp4",
};

const config = {
...MasterConfig,
InputProperties
OutputProperties,
RootElement,
RootEditElement
}

sdk.initEdit(config);