--- url: /reference/items/FigureVideoTwicpics/js-api.md --- # JS API The `FigureVideoTwicpics` class extends the [`FigureVideo` class](/reference/items/FigureVideo/js-api.md) and adds support for TwicPics API. ## Options ### `domain` * Type: `string` * Default: `''` Configures your Twicpics domain. ### `path` * Type: `string` * Default: `''` Configures your Twicpics path. ### `transform` * Type: `string` * Default: `''` Adds transforms to the video with [TwicPics URL API](https://www.twicpics.com/docs/api/basics). ### `step` * Type: `number` * Default: `50` The step used to round up video size calculation. Default to `50`, which means that a size of `320×380` will be rounded to `350×400`. ### `mode` * Type: `string` * Default: `'cover'` The mode used to resize and crop the video. It can be any key of the [transformations API](https://www.twicpics.com/docs/api/transformations) of TwicPics which accepts a size as value. ## Getter ### `domain` * Return: `string` A getter to override in a child class in order to define the main host on which the video should be served by Twicpics. It will be used to replace the host of the video source. ### `path` * Return: `string` A getter to override in a child class in order to define the path on which the video should be server by Twicpics. It will be used to prefix the pathname of the video source.