SimplePortal

Customization => Blocks and Modifications => Mod Requests => Topic started by: ddabcd277 on October 19, 2011, 05:53:01 AM

Title: Want to add page where radio is streamed
Post 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,
Title: Re: Want to add page where radio is streamed
Post by: Oldiesmann on November 12, 2011, 12:34:15 PM
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:

Code: [Select]
<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.
SimplePortal 2.3.8 © 2008-2024, SimplePortal