MP4s behind the "Details" tag do not embed.


#1

It seems like when I post MP4 links in the details tag, they do not auto-embed. I’m just curious if there’s a workaround or if it’s something that could be fixed, since I find the details tag handy for hiding large screenshot updates to make it easier to navigate the thread. Thanks!

Regular:

Details:

https://a.mega64.net/botw/u01/014a.mp4


#2

Decided to investigate a bit. Using Chrome, for reference.

Click here to view the MP4! Your browser does not support the video tag.
<details>
  <summary>Click here to view the MP4!</summary>
  <video controls>
  <source src="https://a.mega64.net/botw/u01/014a.mp4" type="video/mp4">
  Your browser does not support the video tag.
</video>
</details>

It seems if I use the HTML, it works fine in an actual web page (based on this site if I paste the HTML in it), but I get the “Your browser does not support the video tag” on Discourse.

Gonna test this with a couple other browsers real quick…

e: Yep, getting the same message on Firefox and Safari. It might be the wrong direction and honestly I’m far from an expert on web development stuff, but any information may help, right?


#3

Looks like Discourse eats the video and source tags. Take a look at the source code; they are missing.