# Discourse Video Inline

**URL:** https://meta.discourse.org/t/discourse-video-inline/394334
**Category:** Plugin
**Created:** [January 26, 2026, 11:50am UTC](https://meta.discourse.org/t/discourse-video-inline/394334 "2026-01-26T11:50:06Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [January 26, 2026, 11:50am UTC](https://meta.discourse.org/t/discourse-video-inline/394334/1 "2026-01-26T11:50:06Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Summary** | Plays mp4 in the browser instead of forcing the download |
| 🛠 | **Repository Link** | [GitHub - Canapin/discourse-video-inline · GitHub](https://github.com/Canapin/discourse-video-inline) |
| 📖 | **Install Guide** | [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157) |

## 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):

- ❌ [Without the plugin (forces download)](https://unicyclist.com/uploads/default/original/3X/4/f/4fb882b8ca5a0b0e3d75ff932506d57325f5582c.mp4)

- ✅ [With the plugin (plays in browser)](https://d.canapin.dev/uploads/default/original/2X/4/4fb882b8ca5a0b0e3d75ff932506d57325f5582c.mp4)

## 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](https://meta.discourse.org/t/discourse-send-pdf-inline/280875) from @thoka.

---

_[View the full topic](https://meta.discourse.org/t/discourse-video-inline/394334)._
