Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HTML5 video element

Featured Replies

Hi all

 

I'm just looking to pick peoples brains about the compatibility of Html5 <video> or in some cases the lack thereof.

 

I've been following a tutorial series about Html and spent all day scratching my head as to why the mp4 wouldn't work on my Chrome browser. Then I found out that, for whatever reason Chrome dropped support for the mp4 format.

 

But neither would it work for Ogg or webm files, and it needed a quick workaround and a bit of painstaking research from myself to get any video to work.

 

So... I guess my question to you all is, what's the game with Html5 video element?

 

Jon

Chrome DOES support the .mp4 file type.

 

.mp4 is just a wrapper or container format but the video and audio formats under .mp4 file can be varied. For example, for video, MPEG-4 Visual and H.264 are common formats.

 

If you check this website (http://html5test.com/compare/feature/video-mpeg4/video-h264.html) you can see that chrome doesn't support the MPEG-4 Visual format but it DOES support the H.264 format.

 

So if you want to use the .mp4 file type for videos on the web, make sure the encoding is H.264 or convert it into H.264.

You can check the my previous post for further information on getting full browser support.

 

 

EDIT: However, back in 2011, Google said that they were dropping support for the .mp4 file type in favour for the WebM and Ogg Vorbis Theora file types which are open and patent free, in contrast with mp4.

 

They haven't actually removed support yet though (2 years later!) but just in case they remove it or it breaks and they don't fix it, I would make sure you support all the file types. More info in another post I made. Link here: http://www.webdesignerforum.co.uk/topic/67819-best-video-format-to-use-on-a-webpage-google-chrome/?p=427058

Edited by heydanreeves

  • Author

Heydanreeves,

 

Thanks for your advice. I'm not sure if the video converter(s) I have allow me to encode h.246 or whatever it is but the mp4 file I have certainly didn't work with Chrome.

 

Still... I did my research and managed to write the video element in such a way that video should work now on all browsers. At least till they standardize the tag at any rate. Thanks all :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.