Re: single

Kyle Davenport <[email protected]> Thu, 14 Nov 2002 20:12:51 -0600
Newsgroups gmane.comp.apache.mod-mp3
Organization Davenport Consulting
Message-ID <[email protected]>
A subject dear to me.  What a mess microsoft has made of file-types.   In
the unix world, filetype is determined by file "magic",  a marker within a
file's content, not its extension (or lack there of).  The web server is
responsible for reporting the mime-type, by default based on extension
association in /etc/mime.types, but can be changed in httpd.conf to use
magic.  Perhaps that is the easiest thing for you to try.   Your link below
has no extension so the server is not even reporting a mime.type.

There's also (or was?) an MP3MimeType directive in httpd.conf for the mp3
handler.   (altho' I have never been able to get it to work with ogg!)

I believe there's also a javascript method to force mime.types on any link
in an html page.

Kyle

Jon disnard wrote:

> I typically tell people to just go install WinAMP, or whatever, and
> allow that application to set itself as the handler for certain
> file-types. WinAMP, or whatever, will now be responsible for stuff like
> audio/mpeg mime types. Right now it appears Internet explorer doesn't
> know what to do with the mime type it has been given, so it does its'
> default; downloads binary data to a saved file. In the end the problem
> is with your browser, and how your browser knows what to do with certain
> mime-types. Both IE, and mozilla have ways to associate mime-types to
> 3rd party applications. For IE you have to find the place in windows
> that you adjust your global file-type/mime-type stuff, or just install
> WinAMP. In Netscape, or Mozilla you simply go to edit->preferences menu
> to make the change.
>
> -Jon
>
> Brendan wrote:
>
> >Oh, so there is no other way that it can be done?  I have to make a new
> >php file for every mp3 file?  I was hoping for a more simplier way as I
> >intend to have a huge static collection of teaching material.
> >
> >Does mod_mp3 support any bitrate streams?  I put a mixture in and set
> >it to random, it did 128k & 320k fine although stuttered when played in
> >Windows Media Player 7.01 but wouldn't play the lower 16k file?
> >
> >
> >
> >
> >
> >>if you set the header type correctly, the default mp3 player (in
> >>windows) will load...
> >>
> >>eg this is how you could send a single mp3...
> >>the user downloads foo.php which contains the following php code:
> >>
> >>#begin code snip
> >><?php
> >>header("Content-Type: audio/mpegurl;");
> >>?>
> >>#EXTM3U
> >>#EXTINF: O Fortuna
> >>
> >>
> >>
> >http://tunes.zinkwazi.com:8000/?op=play&song=5f9a6ab7f7fdeaf88091
> >7e2c7
> >
> >
> >>503022 f #end code snip
> >>
> >>(assuming you are using php, if not set the header in your language of
> >>choice) greg
> >>
> >>
> >
> >
> >_______________________________________________
> >Mod_mp3 mailing list
> >[email protected]
> >http://lists.tangent.org/mailman/listinfo/mod_mp3
> >
> >
>
> _______________________________________________
> Mod_mp3 mailing list
> [email protected]
> http://lists.tangent.org/mailman/listinfo/mod_mp3

--
Kyle Davenport - unix sys admin consultant - Dallas TX
_____________________________
It is a thirst...a flower dying in the desert...