Configuring your server to deliver HTML5 media formats


show more Configuring your server to deliver HTML5 media formats provides you with in-depth training on Video. Taught by Steve Heffernan as part of the HTML5: Video and Audio in Depth show less
please wait ...

Configuring your server to deliver HTML5 media formats

Before we get working with HTML5 video and audio, here is one step we need to do to make sure our server is delivering the files correctly, and that is to add the correct MIME types. When a browser requests a file from the server along with the file data the server will send information about the file in the response header. This includes a MIME type, which basically identifies what type of file it is. Unfortunately many servers by default will deliver the wrong MIME type for the Ogg and WebM formats. When this happens, HTML5 video won't work.

So we need to correct this. If your server is running Apache, which most likely it is, we just need to add or edit the .htaccess file. The .htaccess file lives at the root of your server. For using the exercise files you can find a version in the 1-04 folder of the exercise files and the htaccess.txt file, which is one I have here open, and you can basically rename this file to .htaccess without the .txt at the end which is the correct for the fil...

Configuring your server to deliver HTML5 media formats
Video duration: 2m 10s 2h 7m Intermediate

Viewers:

Configuring your server to deliver HTML5 media formats provides you with in-depth training on Video. Taught by Steve Heffernan as part of the HTML5: Video and Audio in Depth

Subjects:
Video Web
Software:
HTML
Author:
please wait ...