Okay, I found an answer to this. After going back and forth with Chat GPT to get some configuration assistance, this is what you need to do.
Go to the
Admin Control Panel ->
Content ->
Edit code media sites. I used the following:
- Media site ID: local_media
- Site title: YOUR_SITE_TITLE
- Site URL: https://YOUR_SITE_URL
- Show this site on the list of 'supported' sites shown to visitors: True
- Enabled: True
- Match URLs: https://YOUR_SITE_URL_WITH_VIDEO_DIRECTORY/{$id}.mp4
- Embed template:
Then you can embed locally hosted MP4 files to
YOUR_SITE_URL_WITH_VIDEO_DIRECTORY in the Media Gallery.
You can also directly embed these videos within posts:
I also ensured my local
.htaccess file had support for
*.mp4 files:
I've been pulling my hair out for a week to get this to work. Hopefully, this little guide will help somebody.