WMP not refreshing HTMLView problem

Talk about whatever.
Post Reply
cjpopp
Posts: 13
Joined: Mon Feb 17, 2003 11:54 pm
Location: Madison, WI US
Contact:

WMP not refreshing HTMLView problem

Post by cjpopp » Tue Feb 21, 2006 4:27 pm

About a week ago, my listeners noticed that the webpage that I have showing in Windows Media Player 9 / 10 is no longer doing a refresh every 60 seconds. I've changed none of my code, so I am wondering if this might have been due to new security fixes or something with WMP 10?

The way I have my ASX file is

<ASX Version = "3.0">
<TITLE>9412 - The Rock Station</TITLE>
<MoreInfo href = "http://www.9412.com" />
<Copyright>2006 RCNRadio Networks, Inc.</Copyright>

<Entry>
<PARAM name="HTMLView"
value="http://www.9412.com/playlist/8track-onair.asp"/>
<REF HREF="http://209.51.162.170:9002"/>
</Entry>

</asx>

I am using HTMLView to display the page in the Windows Media Player.

The refresh code that was working until last week is:

<html>
<head>
<title>9412 - The Rock Station 8-Track Player</title>
<%@ Language=VBScript %>
<%
Response.Expires = 0
Response.Buffer = True
Response.Clear
Response.AddHeader "Refresh", "60"
%>
<meta http-equiv="refresh" content="60"> <link rel="stylesheet" type="text/css"
href="http://www.9412.com/css/default.css">
</head>

Note that I have both the Meta and the VBScript version to make sure it's backwards compatable and it was working just fine.

Any ideas about this and what can be done?

Thanks,
Chris J. Popp
9412 - The Rock Station
www.9412.com

User avatar
themixturemedia
Posts: 137
Joined: Fri Dec 10, 2004 2:42 pm
Location: Canada
Contact:

......

Post by themixturemedia » Thu Feb 23, 2006 11:42 pm

Hey there I am not sure about that code how I do it is have your web page refresh what ever about of time. You can get Java code to do that for you. Mine does that and my WMP and Real Player refresh every 120 sec. 8)
The Mixture Media Radio: :twisted:
The best on-line music from the 60's,70's,80's,90's and today. Streaming at 64kbps/48khz (MP3) and 32kbps/44khz (Ogg) 24 hours a day 7 days a week. With great sound and even better music.

User avatar
themixturemedia
Posts: 137
Joined: Fri Dec 10, 2004 2:42 pm
Location: Canada
Contact:

........

Post by themixturemedia » Thu Feb 23, 2006 11:45 pm

Here is my code and you are welcome and it does work

<script language=\"JavaScript\">

//Refresh page script- By Brett Taylor (glutnix@yahoo.com.au)
//Modified by Dynamic Drive for NS4, NS6+
//Visit http://www.dynamicdrive.com for this script

//configure refresh interval (in seconds)
var countDownInterval=120;
//configure width of displayed text, in px (applicable only in NS4)
var c_reloadwidth=200

</script>


<ilayer id=\"c_reload\" width=&{c_reloadwidth}; ><layer id=\"c_reload2\" width=&{c_reloadwidth}; left=0 top=0></layer></ilayer>

<script>

var countDownTime=countDownInterval+1;
function countDown(){
countDownTime--;
if (countDownTime <=0){
countDownTime=countDownInterval;
clearTimeout(counter)
window.location.reload()
return
}
if (document.all) //if IE 4+
document.all.countDownText.innerText = countDownTime+\" \";
else if (document.getElementById) //else if NS6+
document.getElementById(\"countDownText\").innerHTML=countDownTime+\" \"
else if (document.layers){ //CHANGE TEXT BELOW TO YOUR OWN
document.c_reload.document.c_reload2.document.write(\'Next <a href=\"javascript:window.location.reload()\">refresh</a> in <b id=\"countDownText\">\'+countDownTime+\' </b> seconds\')
document.c_reload.document.c_reload2.document.close()
}
counter=setTimeout(\"countDown()\", 1000);
}

function startit(){
if (document.all||document.getElementById) //CHANGE TEXT BELOW TO YOUR OWN
document.write(\'Next <a href=\"javascript:window.location.reload()\">refresh</a> in <b id=\"countDownText\">\'+countDownTime+\' </b> seconds\')
countDown()
}

if (document.all||document.getElementById)
startit()
else
window.onload=startit

</script>
The Mixture Media Radio: :twisted:
The best on-line music from the 60's,70's,80's,90's and today. Streaming at 64kbps/48khz (MP3) and 32kbps/44khz (Ogg) 24 hours a day 7 days a week. With great sound and even better music.

cjpopp
Posts: 13
Joined: Mon Feb 17, 2003 11:54 pm
Location: Madison, WI US
Contact:

Post by cjpopp » Fri Feb 24, 2006 9:18 pm

Thanks! Will check it out

dj001
Posts: 31
Joined: Sat May 03, 2008 6:31 am

Post by dj001 » Fri May 16, 2008 6:19 am

does that script go in the page to be refreshed, or in the .asx file?

Post Reply