SimplePortal
Customization => Blocks and Modifications => Mod Requests => Topic started by: ddabcd277 on October 19, 2011, 05:53:01 AM
-
Hello,
I want to add a page where online radio is streamed (.ogg file). Anyone knows a ready solution. I have seen it on other forums and was wondering how it is achieved.
Excuse me if such topic is already answered.
Many Thanks,
-
If you just want to have an embedded player (letting each browser handle it accordingly), then create a page and add this code to it:
<object type="audio/ogg" data="{url_to_stream}" width="200" height="20">
<param name="src" value="{url_to_stream}">
</object>
Change the width and height to your liking.
If you would prefer to use your own Flash-based player, try FFMP3 (http://ffmp3.sourceforge.net/)
The flash-based player might be a good idea, as I'm not sure how well all browsers support OGG.