Embedding HTML5 video for Chrome


/ Published in: HTML
Save to your folder(s)

Of course you can specify individual codecs within the `type` attribute.


Copy this code and paste it in your HTML
  1. <video>
  2. <source src="movie.mp4" type="video/mp4" /> <!-- safari, ie, et al -->
  3. <source src="movie.webm" type="video/webm" /> <!-- chrome, firefox, opera -->
  4. </video>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.