HTML and CSS Reference
In-Depth Information
12
14
4
6
8
9
10
11.5
12
5
5.1
<audio> element
● ● ●
WAV audio
● ●
MP3 audio
● ●
OGG audio
○ ○ ●
<video> element
● ● ●
OGG video
○ ○ ●
MP4 video
● ●
WebM video
○ ○ ●
Key:
● Complete or nearly complete support
○ Incomplete or alternative support
Little or no support
Web server configuration for audio and video
The first thing you need to consider when serving video and audio is
that you have to make sure the correct MIME types are sent in the
headers. The MIME type sent by the server should match the value set
in the type attribute. On the common Apache server, this means using
the AddType directive. This can go in the server configuration files or in
an .htaccess file in your website directory. The relevant values for
HTML5 audio and video are as follows:
AddType audio/ogg oga ogg
AddType audio/mp4 m4a
AddType video/ogg ogv
AddType video/mp4 mp4 m4v
AddType video/webm webm
 
Search WWH ::




Custom Search