MP3 support - WeOnlyDo Discussion board

MP3 support (General questions)

by dev4fun, Thursday, September 23, 2010, 11:00 (5174 days ago)

Hello,
I want to support MP3 files in my application.
How do I do that?

(How can I configure the code to support MP3 content and play it directly from the url like Windows Media Player?)

Re: MP3 support

by wodDamir, Thursday, September 23, 2010, 11:42 (5174 days ago) @ dev4fun

Hi,

Basically, If I'm correct, it's a just a matter of supplying the correct Content-type header to the client. In this case, you would need to set it to audio/mpeg .

When you click on such an URL, it would launch Windows Media Player (or the default one) and play it.

You should check out the following URL for more info: http://www.spartanicus.utvinternet.ie/streaming.htm

Is that what you were reffering to?

Regards,
Damba

Re: MP3 support

by dev4fun, Thursday, September 23, 2010, 11:55 (5174 days ago) @ wodDamir

Thanks! :)

Re: MP3 support

by cyman, Sunday, October 24, 2010, 09:15 (5143 days ago) @ dev4fun

Any easy way to supply MIME types to WodWebServer for when it does directory browsing?

(Or code examples)

Re: MP3 support

by woddrazen, Sunday, October 24, 2010, 12:01 (5143 days ago) @ cyman

Hi,


For directory browsing in wodWebServer you can just set AllowBrowsing Property to True.

You can choice in DocumentRoot Property with folder you want to browse.

More help for AllowBrowsing Property you can find here:
http://www.weonlydo.com/WebServer/Help/WODWEBSERVERLib~wodWebServer~AllowBrowsing.html

Hope this helps.


Regards,
Drazen