DEV Community

Šime Vidas
Šime Vidas

Posted on

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

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?

Top comments (2)

Collapse
 
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.

Collapse
 
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.