Re: wsx to asp ad rotator doesn't work
From: Ravi Raman (ravira_at_Online.microsoft.com)
Date: 09/30/04
- Next message: Raphael: "Re: Error when trying to play media"
- Next in thread: Harry: "Re: wsx to asp ad rotator doesn't work"
- Reply: Harry: "Re: wsx to asp ad rotator doesn't work"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 29 Sep 2004 18:57:05 -0700
Here is a test.asp that I cooked up that works on my box
right now. I think the <?wsx version="1.0" encoding="utf-
8"?> line is the key for it to work, not sure. And, you
need to reference the full local path (like I mention
c:\wmpub\wmroot\racecar_300.wmv) on the server (if I just
say racecar_300.wmv, I think it tries to download the
file from the web server again).
Let me know if this changes things or not.
Thx,
Ravi
<% OPTION EXPLICIT %>
<?wsx version="1.0" encoding="utf-8"?>
<smil>
<%
Randomize
dim Index
Index=Int(3*Rnd+1)
select Case Index
case 1
Response.Write("<media
src=""c:\wmpub\wmroot\racecar_300.wmv"" />")
case 2
Response.Write("<media
src=""c:\wmpub\wmroot\racecar_100.wmv"" />")
case 3
Response.Write("<media
src=""c:\wmpub\wmroot\racecar_300.wmv"" />")
end select
%>
</smil>
-- This posting is provided "AS IS" with no warranties, and confers no rights. >-----Original Message----- >Ravi, > >sorry, I mistyped. this time I copied and pasted from the >wsx file. > > <media >src="http://nick8.surfernetwork.com/Media/wjks/WJKS- >AdRotator.asp"/> > <media >src="httpd://nick8.surfernetwork.com/Media/wjks/WJKS- >AdRotator.asp"/> > <media src="d:\inetpub\wwwroot\Media\wjks\WJKS- >AdRotator.asp"/> > >I'll turn off fast cache on the pub point, as you >suggested. > >thx >Harry > > >>-----Original Message----- >>Hi Harry, >> >>I cannot reach the page you mentioned. I get a HTTP 404 >>with my browser. Can you fix it? >> >>BTW, you probably have fast cache enabled, so when you >>playback content on the WMP, it is playing from the local >>cache when you play the same URL again. >> >>You can clean your IE cache (Delete temporary internet >>files) and disable the "Fast cache" option on the >>publishing point, and you wouldn't have to change your >>file name every time as the client won't cache anymore. >> >>Thx, >>Ravi >>>-----Original Message----- >>>Hi Ravi -- thanks again for your help. >>> >>>yes, you are correct, the Response.Write did not work. >>IIS >>>has anonymous access enabled, and does not have any >other >>>type of access enabled. All of the authorizations and >>>authentications are disabled on both the WM Serve as >well >>>as the publishing point, execpt for Anonymous >>>Authentication. >>> >>>The pub point wsx file has a test file that is called >>>before the asp page, just so I can tell for sure that >the >>>wsx file was called and read correctly by WMS. It works >>as >>>expected. The second entry in the wsx file is the asp >>page. >>> >>>I rewrote the test asp page, and you can test it for >>>yourself. It is http://nick8.surfernetwork.com/wjks/WJKS- >>>AdRotator.asp. You will see that it will randomly >>generate >>>a SMIL to one of three other test wmv files. The SMIL >>>references are encapsulted in <html> </html> tags, as >>>shown in the WM resource kit (but, I've tried without >the >>>html tags, and that didn't work either). >>> >>>I set up each of the three files in a different format, >>>but none of them work. The first is pathed to WMS and >you >>>can test this yourself. The second is a fully pathed >>local >>>disk access, the third is a relative disk path. They are: >>> >>>mms://nick9.surfernetwork.com/TestFilePubPoint/powered_ by >_ >>1 >>>00.wmv >>> >>>d:\wmpub\WMRoot\TestFilePubPoint\snowboard_100.wmv >>> >>>pinball.wmv >>> >>>I also just now change the wsx file to call the asp page >>>three different ways to see if any variations will work, >>>but none of them do. They are: >>> >>>http://nick8.surfernetwork.com/wjks/WJKS-AdRotator.asp >>>httpd://nick8.surfernetwork.com/wjks/WJKS-AdRotator.asp >>>d:\inetpub\wwwroot\Media\wjks\WJKS-AdRotator.asp >>> >>>In the case of "httpd", WMS reports an error (rather >than >>>a warning), that it cannot read the file. In the other >>two >>>cases it reports a warning that it cannot stream from >the >>>asp page, meaning that at least it was able to find/read >>>the asp page. >>> >>>I've been using a packet monitoring utility (Ethereal). >>>IExplorer appears to not trouble itself to check with >the >>>server once it has handed off a call to the WM Player - - >>>consequently, subsequent calls are passed directly to >the >>>player and the player immediately resumes its connection >>>to the WM server without checking to see if the wsx file >>>(or anything else) has changed. As a result of this, >I've >>>been forced to change the test file name every time -- >>I'm >>>now up to test40.wmv. >>> >>>>-----Original Message----- >>>>Just to be clear, you are saying that changing the >>>>response.write to Response.Write("<media >>>>src=""c:\wmpub\wmroot\SoundOfTriState00030020- >>>>2.wmv"" />") didn't work? >>>> >>>>If yes, next thing to check is: What kind of access >>>>control is enabled on the IIS box? Is Anonymous access >>>>allowed on the IIS box? >>>> >>>>It is possible that IIS has Negotiate Authentication >>>>enabled (and Anonymous access disabled). If this is the >>>>case, then it would work when you are logged on as a >>>valid >>>>domain user using IE to get the web page but it will >>fail >>>>with WMS. >>>> >>>>If indeed negotiate is enabled on the IIS, then on the >>>>publishing point that sources from the playlist, go to >>>>Properties->"Credentials" and set a valid >>>>username/password that the IIS server will accept and >>see >>>>if that works. >>>> >>>>Thx, >>>>Ravi >>>>-- >>>>This posting is provided "AS IS" with no warranties, >and >>>>confers no rights. >>>> >>>> >>>>>-----Original Message----- >>>>>Ravi, >>>>> >>>>>I just read about the "network Services" account that >>>WMS >>>>>runs under, and gave permissions to that account for >>the >>>>>entire IIS file tree, with inheritance. Still doesn't >>>>work. >>>>> >>>>>Harry >>>>> >>>>>>-----Original Message----- >>>>>>Ravi, Thanks for your suggestions. >>>>>> >>>>>>I changed the link to a file link (d:/ etc.) If I >>>remote >>>>>>into the server and pop that link into a browser, the >>>>>>media player starts and plays the file correctly, I >so >>>>>>know the link is ok. >>>>>> >>>>>>Also, you can access the asp page with a remote >>>browser, >>>>>>and it executes correctly -- you can look at the >>source >>>>>>that is returned, and it appears to be correctly >>>>>formatted. >>>>>> >>>>>>And also, I added a media file in the wsx preceeding >>>the >>>>>>link to the asp file, and that media file plays, so I >>>am >>>>>>sure that the server is reading the wsx file. >>>>>> >>>>>>But, the media server still reports the error that it >>>is >>>>>>unable to stream the media from the asp page. >>>>>> >>>>>>The asp page is within the IIS file tree -- is there >>>>some >>>>>>type of special premissions required for WMS to >access >>>>an >>>>>>IIS file? (btw, the HTTP Download plugin is enabled). >>>>>> >>>>>>thanks again, >>>>>> >>>>>>Harry >>>>>> >>>>>> >>>>>>>-----Original Message----- >>>>>>>Harry, >>>>>>> >>>>>>>Haven't had a chance to try your ASP script, but >have >>>>>you >>>>>>>directly connected to your ASP file and looked at >the >>>>>>>output (say on a simple web page?)? Does it adhere >to >>>a >>>>>>>valid WSX syntax? >>>>>>> >>>>>>>I am not 100% sure but you might want to see if this >>>is >>>>>>>happening in your case: if your ASP file presents a >>>WSX >>>>>>>output and that in turn refers to a WMV, then the >>>>server >>>>>>>may try to download the WMV from web server. So, for >>>>>>>testing purposes, see if you can return the complete >>>>>>local >>>>>>>path on the server for the content (i.e, change your >>>>>>>response.write to Response.Write("<media >>>>>>>src=""c:\wmpub\wmroot\SoundOfTriState00030020- >>>>>>>2.wmv"" />"). change the directory appropriately) >and >>>>>see >>>>>>>if the server can stream. >>>>>>> >>>>>>>Also, instead of HTTPD create a local WSX that >points >>>>to >>>>>>>the exact same content you have and see if that >>>streams >>>>>>>okay? >>>>>>> >>>>>>>Thx, >>>>>>>Ravi >>>>>>>-- >>>>>>>This posting is provided "AS IS" with no warranties, >>>>and >>>>>>>confers no rights. >>>>>>> >>>>>>>>-----Original Message----- >>>>>>>>Manny, >>>>>>>> >>>>>>>>According to the MS literature, httpd references a >>>>>>>>webserver page that generates a custom playlist >>file. >>>>>My >>>>>>>>interpretation is that the "d" tells the WM server >>to >>>>>>>>access a local file via the IIS Webserver. >>>>>>>> >>>>>>>>Harry >>>>>>>> >>>>>>>>>-----Original Message----- >>>>>>>>>For one thing, this line is wrong: >>>>>>>>>httpd://SURFERNET/Media/wjks/WJKS-AdRotator.asp >>>>>>>>> >>>>>>>>>Since I don't know what the right URL is I'd guess >>>by >>>>>>>>saying >>>>>>>>>change the httpd >>>>>>>>>to http >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>"Harry" <anonymous@discussions.microsoft.com> >wrote >>>>in >>>>>>>>message >>>>>>>>>news:26e301c4a427$b0500310$a301280a@phx.gbl... >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> I can't seem to get a simple test arrgt to work >>>for >>>>>ad >>>>>>>>>> rotation. If anyone can help, I'd really >>>appreciate >>>>>>it. >>>>>>>>>> I've got a wsx assigned to the publishing >>>>>>>>>> point "TestPubPointForFiles": >>>>>>>>>> >>>>>>>>>> <?wsx version="1.0" ?> >>>>>>>>>> <smil> >>>>>>>>>> <media src="httpd://SURFERNET/Media/wjks/WJKS- >>>>>>>>>> AdRotator.asp"/> >>>>>>>>>> <media src="%requestedUrl%"/> >>>>>>>>>> </smil> >>>>>>>>>> >>>>>>>>>> I have an ASP ad rotator (listed below) located >at >>>>>>>>>> d:/Inetpub/wwwroot/Media/wjks/WJKS- AdRotator.asp. >>>>>>>>>> >>>>>>>>>> Right now it only has one file to play, just for >>>>>>>>testing. >>>>>>>>>> If it ever plays this file, then I'll know it >>>works. >>>>>>>>>> The WM server reports error code 0xc00d158c: >>>>>>>>>> "The publishing point 'TestPubPointForFiles' is >>>>>>unable >>>>>>>>to >>>>>>>>>> stream from 'httpd://SURFERNET/Media/wjks/WJKS- >>>>>>>>>> AdRotator.asp', referenced >>>>>>>>>> >>>>>>>>in 'file://D:\wmpub\WMRoot\wjks\WJKS_RotatorWrappe r. >w >>s >>>x >>>>' >>>>>.. >>>>>>" >>>>>>>>>> >>>>>>>>>> <% OPTION EXPLICIT %> >>>>>>>>>> <HTML> >>>>>>>>>> <smil> >>>>>>>>>> <% >>>>>>>>>> Randomize >>>>>>>>>> dim Index >>>>>>>>>> Index=Int(3*Rnd+1) >>>>>>>>>> select Case Index >>>>>>>>>> case 1 >>>>>>>>>> Response.Write("<media >>>>>>>>>> src=""SoundOfTriState00030020-2.wmv"" />") >>>>>>>>>> >>>>>>>>>> case 2 >>>>>>>>>> Response.Write("<media >>>>>>>>>> src=""SoundOfTriState00030020-2.wmv"" />") >>>>>>>>>> >>>>>>>>>> case 3 >>>>>>>>>> Response.Write("<media >>>>>>>>>> src=""SoundOfTriState00030020-2.wmv"" />") >>>>>>>>>> >>>>>>>>>> end select >>>>>>>>>> %> >>>>>>>>>> </smil> >>>>>>>>>> </html> >>>>>>>>> >>>>>>>>> >>>>>>>>>. >>>>>>>>> >>>>>>>>. >>>>>>>> >>>>>>>. >>>>>>> >>>>>>. >>>>>> >>>>>. >>>>> >>>>. >>>> >>>. >>> >>. >> >. >
- Next message: Raphael: "Re: Error when trying to play media"
- Next in thread: Harry: "Re: wsx to asp ad rotator doesn't work"
- Reply: Harry: "Re: wsx to asp ad rotator doesn't work"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|