DEV Community


Does not support the <video> element?

Šime Vidas
・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 does not support the <video> element?

Discussion (2)

ben profile image
Ben Halpern

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.

aardrian profile image
Adrian Roselli

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.