<<< How2 Index




How2...Embed a media player in a web page
Whats This???

Rver wanted your site visitors to hear your Station output just by visiting your page? To allow your site visitors to hear your station output you can add an embedded media player to your page and visitors will hear your stream provided they have the parent player installed on there PC. Introduce casual visitors to your music on site for free. Here we will tell you how.


What will I need???

You need 3 things to embed a player.

A Current accessable stream

If you already have a stream to SHOUTcast, IceCast, JetCast, SimpleCast, or any other open access server then you will be able to redirect streams to your website (Sadly it cant be done with Live 365 though)
If you dont already have this, there are How2's on setting up a SHOUTcast Server and a JetCast I hope to add an IceCast How2 when time permits. They are realy quite simple to set up if the How2's are followed correctly.
You can find them in the How2... Index

The .asx file

<asx version="3.0">
<title>*STATION NAME*</title>
<entry>
<title>*STATION NAME*</title>
<ref href="http://YOUR IP:PORT/"/>
</entry>
</asx>


Edit in Notepad and save this as as a .asx file and then upload it to your web site. Take the address of the .asx file on your site and use that in the Embeded player. (see below)

What it does is... when someone clicks the player on the webpage that links to the .asx the .asx will then launches the stream from its location (Your PC) directly to the player.


The Embedded Player Code

Get either RealPlayer or Windows Media at Caster Club There is a code generator and all you need is the Address of the .asx file you Upoaded on your website to build your custom player.

Once done Copy & Paste the code into your Page where you want he player to appear.

Remember though you'll be using up bandwidth for each listener using the site so you need a damn good connection if you hasve a lot of site traffic. There is a calculator at Caster club to work this out but basicly its a case of taking your Upload Bandwidth and dividing it by your chosen bitrate.

Bandwidth = 500k | Bitrate = 24k | listeners you can support = 18

Bandwidth = 256k | Bitrate = 24k | Listeners you can support = 9


But remember thats on a good day going down hill with the wind behind you and in reality you could probably support 2/3 of this number of listeners before you start getting problems with keeping them all connected. You need to keep some spare bandwidth back for other applications on your PC to access the web so never Max out on listener slots as it will only cause problems all around.
A low bitrate will help but SHOUTcast only supports mp3 so no Ogg streaming. IceCast supports Ogg and Ill include a How2 IceCast soon. OggVorbis is perfect for low bitrate streaming as it still reproduces quality audio at low rates, Even a stream as low as 12k sounds pretty good in Ogg.



<<< How2 Index


A1kC Productions 2002 - 2004


Your IP
Hosted by www.Geocities.ws

1