Before implementing our video, we need to make sure our server knows what media types we will be serving. Doing this now helps to avoid headaches later on when we don't know why we are getting network errors. So let's get to it.
First, we need to know what file types we will be serving up. In our examples we will be using MP4, but it's always a good idea to allow what is supported. Make sure you have WebM, OGV, and MP4 formats for your videos. But first, before we go on, let's side step and learn a little bit about these formats.
Tip
We're not going to get too deep into explaining the different types that are widely supported, but keep in mind that Theora, WebM, and H.264/MPEG-4 are the most widely supported formats. Both Theora and WebM are free, with WebM development being supported by Google. The implementation for Theora in browsers has lagged due to worry about patents, while WebM has been widely supported by Mozilla Firefox, Google, and Opera due to...