Repository at

Installation instructions:

What this does?

This theme component adds a composer button that simplifies adding videos with subtitles (VTT format), a poster image and multiple video sources to a Discourse post.

Clicking the button triggers a modal window that allows uploading/linking the relevant files and then adds the appropriate HTML code in the composer:

image: 690x461, 75%
image: 690x291, 75%

Admin configuration settings:
image: 690x341, 75%

(For uploads to work, you’ll need to allow .vtt and your chosen video formats in the authorized extensions site setting.)