Insert Video

:discourse2: Summary Insert Video adds a composer button that simplifies adding videos with subtitles (VTT format), a poster image and multiple video sources to a Discourse post.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-insert-video
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

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

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

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

4 Likes

Fantastic, that works perfectly!

4 Likes

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

1 Like

is there any demo using this component?

1 Like

Hi, I have used this component for a long time and it has always worked great, but since yesterday it no longer allows me to upload videos on my forum.

Are both Discourse and the component up to date? There was a regression recently in the component due to some changes in core, but it’s now fixed.

2 Likes

I went to the repository and I get this.

Yes, that means there is an update. (The red X you can ignore, it means an internal testing doesn’t work on the component.) On your own Discourse instance, under that component’s admin screen, you need to click “Check for Updates” and then “Update to Latest”.

3 Likes

Thank you very much, the component is updated, perhaps it is a problem with my forum instance, I will check.

2 Likes

@pmusaraj is that component still compatible with stable ?

Uncaught Error: Could not find module `discourse/mixins/uppy-upload` imported from `discourse/theme-154/components/poster-uploader`

Could you maybe provide for a .discourse-compatibility file?

2 Likes

Yeah, good point. I have added a compatibility file to the component now, but haven’t been able to test properly with an instance on stable. Would you mind trying this out and confirming it works @RGJ? Thanks in advance.

3 Likes

Works like a charm, thanks!

@PaulinaMX updated it on your site

3 Likes

Thank you so much, It’s working now. :heart_eyes::raised_hands:

2 Likes