Technical note: 10301 Created: 05/11/95 by Trip Last modified: 07/07/95 by Brian Product: Netscape Navigator Operating system: Unix (generic)
In order to play sound on a Unix system, you need a program named "sox". If you also want to do audio streaming from Netscape (that is, be able to play the files while they are still downloading through the network) you need a program named "xplay". The lines in the "mailcap" file for these two utilities should read:audio/x-wav; sox -t .wav - -t .au - | xplay -forkoff -; stream-buffer-size=8000 audio/*; xplay -forkoff -; stream-buffer-size=8000To display MPEG video, you will need to have a MPEG player; other video formats (including QuickTime) can be handled by "xanim". Be sure to have this line in the "mailcap" file:video/*; xanim +Ca +CF4 -Cn %sTo find out where Netscape´s "mailcap" file is, go into the Netscape Preferences and go down to the "Helper Applications" section. The complete path to the file will probably be something like "/usr/local/lib/netscape/mailcap". You can override the settings in the normal "mailcap" file (which might be installed somewhere where you can´t modify it, or where you wouldn´t want to modify it) by creating a file named ".mailcap" in your home directory. Here´s a sample ".mailcap" file:audio/x-wav; sox -t .wav - -t .au - | xplay -forkoff -; stream-buffer-size=8000 audio/*; xplay -forkoff -; stream-buffer-size=8000 video/*; xanim +Ca +CF4 -Cn %s application/postscript; ghostview %s application/x-dvi; xdvi %s
Back to: Netscape Navigator Technical Notes