Funkcionalnosć toś togo sedła se pśez wótwardowańske źěła wobgranicujo, kótarež maju wašo dožywjenje pólěpšyś. Jolic nastawk waš problem njerozwězujo a cośo pšašanje stajiś, wobrośćo se na našo zgromoźeństwo pomocy, kótarež na to caka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomagaś.

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Dalšne informacije

Can't use video in <embed> tag

  • 4 wótegrona
  • 1 ma toś ten problem
  • 20 naglědow
  • Slědne wótegrono wót cor-el

more options

I need to embed video using the <embed> tag rather than the <video> tag. Other browsers support this, but Firefox doesn't.

For example, this code:

    <figure>
        <embed src="myvid.mp4">
        <figcaption>
            myvid
        </figcaption>
    </figure>

works in Chrome. Firefox however ignores the embed source and only prints the content of the <figcaption> tag.

What's going on here? Does Firefox not support video in <embed> tags?

I need to embed video using the &lt;embed&gt; tag rather than the &lt;video&gt; tag. Other browsers support this, but Firefox doesn't. For example, this code: <pre><nowiki> <figure> <embed src="myvid.mp4"> <figcaption> myvid </figcaption> </figure></nowiki></pre> works in Chrome. Firefox however ignores the embed source and only prints the content of the &lt;figcaption&gt; tag. What's going on here? Does Firefox not support video in <embed> tags?

Wót cor-el změnjony

Wšykne wótegrona (4)

more options

I need to embed video using the <embed> tag rather than the <video> tag. Other browsers support this, but Firefox doesn't.

For example, this code:

  <figure>
      <embed src="myvid.mp4">
      <figcaption>
          myvid
      </figcaption>
  </figure>

works in Chrome. Firefox however ignores the embed source and only prints the content of the <figcaption> tag.

What's going on here? Does Firefox not support video in <embed> tags?

Wót blackburn změnjony

more options

With what content type does the server send this mp4 file ?

Did you check the Web Console?

  • "3-bar" menu button or Tools -> Web Developer

Try to add a type attribute

  • <embed src="myvid.mp4" type="video/mp4" >

Can you post a link to a publicly accessible page (i.e. no authentication or signing on required)?

more options

Thanks for the interest. This page isn't being served by a webserver but is a local file. The HTML is rendered by Pandoc from Markdown. So I won't typically be able to add a 'type' key in the <embed> tag.

However, testing with

 <figure>
   <embed src="myvid.mp4" type="video/mp4">
   <figcaption>My video</figcaption>
 </figure>


show just the text "My video" in a red-lined box.

Works fine in Chrome.

more options

Anything (possibly security) related to this in the Web Console ?

  • "3-bar" menu button or Tools -> Web Developer