Hi,
I'm slowly starting to lose my hair over this, so any help is
appreciated.
I have a XP Pro desktop machine connected to my stereo and uses it as
a jukebox. I control it with my laptop using the WMPlayer-control via
good old ASP-pages.
There are no problems playing mp3s and wma from local drives, but when
I try to access a web-radio the WMPlayer-object returns an error
indicating that the file/stream can't be located.
I've tried to reproduce this error in a vbs-file, but this works
without any problems. I have a suspicion that restrictions might apply
for the IIS internal IWAM_** user, but I haven't got a clue where to
look.
Thanks in advance
Ryan Dahl
ASP-SAMPLE:
<html>
<head>
<title>Test</title>
</head>
<body>
<%
dim wmpObj
wmpObj = CreateObject("WMPlayer.OCX")
wmpObj.URL ="http://www.dr.dk/netradio/Metafiler/asx/dr_p2_128.asx"
wmpObj.controls.play()
dim error_count
error_count = wmpObj.error.errorCount
if error_count > 0 then
response.write("<p>" &
wmpObj.error.item(error_count-1).errorDescription & "</p>")
end if
%>
</body>
</html>
VBS-SAMPLE:
Dim oWMP
Set oWMP = CREATEOBJECT("WMPlayer.OCX")
oWMP.URL = "http://www.dr.dk/netradio/Metafiler/asx/dr_p2_128.asx"
oWMP.controls.play()
WScript.Sleep(100000)