Does Dev.to not support the <video> element?

・1 min read

I created an article (from Markdown) that includes <video> elements. The video files are hosted on my own website.

When I save the post, the <video> elements lose their attributes (controls and playsinline) and the videos appear too large (there is no max-width: 100% style).

Does this mean that Dev.to does not support the <video> element?

DISCUSSION (2)
 

We do not. But that’s an interesting idea. I honestly hadn’t thought of natively supporting video raw.

We have various types of video support, but not this.

There are UX concerns in supporting the tag depending on implementation but if folks want to chat through some of those things here in the comments, it will all be taken into consideration.

 

I think if you can guide users to provide:

  • a poster image
  • a caption file
  • a good video format

… then generating the HTML or providing cut-n-paste code can be straightforward. I would rather see a native player than most of the third-party (generally inaccessible) options out there.

Classic DEV Post from Aug 8 '18

Got My First Pull Request Accepted and Merged

Holy Shit, I Made Something That Someone Else Was Like "Ya, that works." Check...