Insert Video component

Repository at GitHub - discourse/discourse-insert-video

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

Installation instructions: How do I install a Theme or Theme Component?

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:


Admin configuration settings:

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

23 Likes

Sweet, thank you! Would it be possible to allow audio as well and just keep showing the poster image (or if none is available maybe a configurable background color) plus subtitles?

Also, and I realize this is a much bigger ask, would something like what the YouTube Timestamps Component does be doable with this component in the long-term? That’d be absolutely fantastic.

1 Like

Hi @pmusaraj, what button should I see in the composer window once installed?

I am seeing an empty space right now:

3 Likes

Sweet component @pmusaraj, thanks for sharing!

Giving this a test now, can confirm I’m also getting the same as @outofthebox with the empty icon box (2.5.0 stable).

2 Likes

I just pushed a fix for this, please update the component in your instances.

3 Likes

@pmusaraj, that’s truly a gift. Thank you.

I am not at 2.5.0 yet. Will this commit work on 2.4.5?

1 Like

It might not, but a quick fix in that case would be to add the video icon to the svg icon subset site setting.

3 Likes

Fantastic, that works perfectly!

3 Likes

Great! Thanks @pmusaraj! The latest update is working perfect for me also :slight_smile:

1 Like

is there any demo using this component?