Repository at https://github.com/discourse/discourse-insert-video

https://github.com/discourse/discourse-insert-video

Installation instructions: https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682

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.)