The post I made above was actually based on a video streaming page I made a while ago.
Today, as I have had a helpdesk ticket for quite some time to do something very similar, I thought I'd explore a bit further.
Here is what I've done (so now you have to options from me!)
Step one: Create the webpage. My HTML code is below. You can either save this as HTML and have opened normally, or save as .hta and open in a nice contained webpage application.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<HTA:APPLICATION
border="thin"
borderStyle="normal"
caption="yes"
maximizeButton="no"
minimizeButton="no"
showInTaskbar="no"
windowState="normal"
innerBorder="yes"
navigable="no"
scroll="no"
scrollFlat="yes" />
<meta content="en-gb" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Your Radio Station Name from Your School</title>
<style type="text/css">
a {
color: #FFFF00
}
a:visited {
color: #FFFF00
}
a:active {
color: #FFFF00
}
a:hover {
color: #FFFF00
}
.auto-style1 {
text-align: center;
}
.auto-style2 {
font-family: Arial, Helvetica, sans-serif;
font-size: x-small;
}
.auto-style3 {
font-family: Arial, Helvetica, sans-serif;
font-size: medium;
}
.auto-style5 {
text-align: center;
font-size: xx-small;
font-family: Arial, Helvetica, sans-serif;
color: #C0C0C0
}
</style>
</head>
<SCRIPT Language="VBScript">
Sub Window_Onload
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * From Win32_DesktopMonitor")
For Each objItem in colItems
intHorizontal = objItem.ScreenWidth
intVertical = objItem.ScreenHeight
Next
intLeft = (intHorizontal - 800) / 2
intTop = (intVertical - 600) / 2
window.resizeTo 600,350
window.moveTo intLeft, intTop
End Sub
</SCRIPT>
<body style="color: #FFFFFF background-color: #000000">
<p class="auto-style1">
<img alt="Your Radio Station Name from Your School" class="auto-style2" height="137" src="radiologo.jpg" width="350" /><br />
<object id="SchoolRadio" class="auto-style2" style="height: 57px" type="video/x-ms-wmv" width="200">
<param name="filename" value="playlist.asx" />
<param name="uiMode" value="none" />
</object></p>
<p class="auto-style1"><span class="auto-style3"><strong>On air Monday to Friday</strong></span><strong><br class="auto-style3" />
</strong><span class="auto-style3"><strong>1.30pm - 2.15pm</strong></span></p>
</body>
<p class="auto-style5">(C) 2012 Your School. All rights reserved</p>
</html> Step two: Create playlist.asx - here is the code from mine:
Code:
<Asx Version = "3.0" >
<Title > schoolradio</Title>
<Param Name = "AllowShuffle" Value = "yes" />
<Entry>
<Duration value = "00:00:0.000" />
<Param Name = "Bitrate" Value = "128016" />
<Param Name = "FileSize" Value = "5022" />
<Param Name = "Is_Protected" Value = "False" />
<Param Name = "Is_Trusted" Value = "false" />
<Param Name = "IsVBR" Value = "False" />
<Param Name = "MediaType" Value = "audio" />
<Param Name = "SourceURL" Value = "mms://streaming.server.com/school" />
<Param Name = "Streams" Value = "audio" />
<Title > Your School</Title>
<Param Name = "type" Value = "broadcast" />
<Param Name = "WMFSDKNeeded" Value = "0.0.0.0000" />
<Param Name = "WMFSDKVersion" Value = "12.0.7601.17514" />
<Param Name = "WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_URL" Value = "push:*" />
<Param Name = "WMS_CONTENT_DESCRIPTION_SERVER_BRANDING_INFO" Value = "WMServer/9.1" />
<Param Name = "WMServerVersion" Value = "9.1" />
<Ref href = "mms://streaming.server.com/school"/>
</Entry>
</Asx>
As with the other example, make sure your .html (or .hta if you go that route) are saved in the same place as the .asx file - or ammend the paths in the above code accordingly.
Obviously you can also play around with my CSS settings. Our school colours are black and red, so it's quite dark! (There is also a reference to radiologo.jpg which you may either wish to create, or remove)
Step 3: The bit I haven't done is find the MMS link for the BBC. For my purposes I used the MMS link for our own school radio system (system supplied by schoolradio.com)
If you are able to locate a valid mms link for an existing radio station I would imagine you could just replace the two references above in your asx file.
I hope either of my two examples in the thread help!
(As your post prompted me to do the work and clear my own helpdesk ticket, I figured I may as well post this too!)
Cheers