Mime Type ProblemsFirst, if the audio or video file opens as "text" (gibberish in the browser window), your web server is almost certainly not recognizing it as audio or video at all. Your web server is responsible for telling the web browser what type of information a file contains. A file extension, such as .wmv, is not something that your web browser should try to interpret; it is the responsibility of the web server to make such decisions and send the correct mime type name to the web browser.
For instance, if the filename is
mymovie.wmv, the web
server is responsible for recognizing this and sending a
Content-type: video/x-ms-wmv header to the web browser as
part of its response to the browser's
HTTP request. If the server does
not do so, the browser is entirely correct to display it as plain text.
This is necessary because file extensions do not necessarily have the
same meaning on all systems, and some URLs do not have a file
extension at all.
To correct such problems, see How do I add a MIME content type to my web server?
Missing Player SoftwareOf course, when you choose to use audio and video files, there will always be users who simply do not have the required player software. MP3 is an open standard, although not a royalty-free one, and players are available for all systems. RealMedia files, as well as MP3 files, are playable on nearly all systems with RealPlayer. Macintosh users will already have Apple's QuickTime Player, which can be used to play
.mp3files. Linux users will want to install MPlayer in addition to RealPlayer.
Got a LiveJournal account? Keep up with the latest articles in this FAQ by adding our syndicated feed to your friends list!