1

I'm trying to embed an mp4 file into my html. Here's my code snippet:

<div class="bsu logo">
   <embed src="video/gian.mp4" style="width:960px;height:500px;">
</div>

The play bar is playing but only showing blank video. When I'm trying to embed other .mp4 video it's playing.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
chiradee
  • 105
  • 1
  • 3
  • 14
  • 2
    "When I'm trying to embed other .mp4 video it's playing" — Which implies that the problem is with the file, not with the code. – Quentin Oct 28 '16 at 14:18
  • Hi @Quentin. I can play the mp4 file alone but when I'm embedding it, it doesn't play anymore. – chiradee Oct 28 '16 at 14:19
  • 1
    Well you don't have a `type` attribute...have you tried adding one? – TylerH Oct 28 '16 at 14:24
  • 1
    your question may have already been answered here: http://stackoverflow.com/questions/11588654/why-wont-some-mp4-files-play-via-html5 – sammyb123 Oct 28 '16 at 14:31
  • @TylerH I tried added **type="video/mp4"** but the same problem exist – chiradee Oct 28 '16 at 14:42
  • May be the codec of the file is different, you can try if it work in other browsers or try converting to other web supported format. Also refer http://stackoverflow.com/questions/24455797/problems-embedding-mp4-video – Dipu Raj Nov 17 '16 at 05:47

0 Answers0