Re: single

Jon disnard <[email protected]> Mon, 18 Nov 2002 07:47:52 -0600
Newsgroups gmane.comp.apache.mod-mp3
Message-ID <[email protected]>
You can also use the HTTP content-disposition header to make it work. 
That header works well with content-name, and content-type headers to 
work-around the broken IE browser. I think but, I'm not sure, that 
somebody has already hacked together something like that to use the 
content-disposition header on each request. I'd have to take a look at 
the configure file to make sure, but I think brian made 
content-disposition an on/off feature controlled by a configure arg, or 
a directive, or whatever.

-Jon

Kyle Davenport wrote:

>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...
>
>
>
>_______________________________________________
>Mod_mp3 mailing list
>[email protected]
>http://lists.tangent.org/mailman/listinfo/mod_mp3
>  
>