Creates an instance of the JS2Video class
OptionalautoPlay video immediately after loading? Default: false.
OptionalenableEnables 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.
Optionalloop?: booleanLoop the video? Default: false.
Optionalparams?: anyVideo template params. Default: {}.
OptionalparentParent element. Default: document.body.
The URL to the video template.
OptionalvideoString to prefix exported video file names with. default: js2video.
Exports the video to MP4 from the browser or server.
Optionaloptions: { The options for the export.
Optionalsignal?: AbortSignalThe signal that can be used to abort the export process.
Updates the progress of the video timeline.
This method calls the progress() method of the associated timeline
with the given progress value to update the video's current position.
Optionalprogress?: numberOptionaltime?: number
A JS2Video class