Discourse Video Inline

:information_source: Summary Plays mp4 in the browser instead of forcing the download
:hammer_and_wrench: Repository Link GitHub - Canapin/discourse-video-inline
:open_book: Install Guide How to install plugins in Discourse

Description

By default, Discourse forces MP4 files to be downloaded when a video link is opened in your browser.
This plugin ensures MP4 uploads play directly in the browser by updating the MIME type to video/mp4 and the Content-Disposition to inline.

Preview (click to see the behavior):

Configuration

No configuration necessary.

I’m not sure it will work if you use S3 for your files.

Thanks

This plugin is heavily inspired by Discourse send PDF inline from @thoka.

11 Likes