title: Adding video support to the blog
date: 2018/02/18 07:14:31
slug: adding-video-support-to-the-blog
status: published
link: https://jj.isgeek.net/2018/02/adding-video-support-to-the-blog/
display_format: entry
syndication: https://twitter.com/jjdelc/status/965122249639514113


Evidently, having all the pieces in place for file uploads made the changes in the server very easy. The [micropub specification](https://www.w3.org/TR/micropub/) just says that you need the `video` parameter. 

On the client side, same blob url for the video tag source worked nicely. Just had to keep separate lists of video and images. Thankfully the browser exposes a `.type` attribute for files that contains the mime type. 

Here's the [example post](https://jj.isgeek.net/2018/02/testing-video-uploads/) 