Re: Dynamic Playlist - Random Ads
- From: KevBell <KevBell@xxxxxxxxx>
- Date: 17 May 2007 07:17:02 -0700
Thanks for the help! I think I just about have it working now....
When I load the .aspx file that generates the playlist and view it's
source, it makes the playlist code perfectly.
However, when I try to access it with httpd://, Media Player also says
that it cannot find the file. If I take the link directly from the
"view source", it loads the video perfectly.
Am I missing any obvious steps here?
<?wsx version="1.0"?>
<smil>
<media src="D:\PublishingPoints\Testing.wmv" noSkip="true"
role="Advertisement" />
</smil>
All the best!
- Kev
On May 11, 1:57 pm, "Neil Smith [MVP Digital Media]" <n...@xxxxxxxxxx>
wrote:
On 11 May 2007 06:26:39 -0700, KevBell <KevB...@xxxxxxxxx> wrote:
I want to play only one of the 5 promos before each show, and for
them to be chosen randomly.
I found the example at Microsoft that seems to walk me through this
sort of thing:
https://www.microsoft.com/windows/windowsmedia/howto/articles/adinser...
I'm not sure where 'dynamicplaylist.aspx' sits; be it in WMRoot or
The extension gives it away. It's an ASPX page running on IIS in .NET
language, though it could be written out using Perl, PHP, ASP classic
or any language which can emit text and the appropriate headers
(text/xml)
whereever? I'm not sure if I need to set up IIS and use it to host
this .aspx page as a website, or if WMS somehow handles this request.
No, you would reference it using the WMS specific httpd:// protocol,
which is translated to a plain, everyday request to the web server
you're running.
Lastly, I'm not quite sure even how to call this
dynamicplaylist.aspx? I've seen several variations online so far:
mms://<videoserver>/dynamicplaylist.aspx
Won't work (mms is not a web server protocol)
httpd://<videoserver>/dynamicplaylist.aspx
Neither of the above, then.
httpd://your.webserver.com/whatever_script.php would be just as good.
Test the web page in a browser first, so you can view the XML playlist
content, which you have to arrange to randomise somehow, eg using your
database + ORDER BY RAND() or some array function, then creat the XML
string and send it to the output.
HTH
Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2007http://mvp.support.microsoft.com/mvpfaqs
.
- Follow-Ups:
- Re: Dynamic Playlist - Random Ads
- From: Neil Smith [MVP Digital Media]
- Re: Dynamic Playlist - Random Ads
- References:
- Dynamic Playlist - Random Ads
- From: KevBell
- Re: Dynamic Playlist - Random Ads
- From: Neil Smith [MVP Digital Media]
- Dynamic Playlist - Random Ads
- Prev by Date: Re: UNC
- Next by Date: Re: Dynamic Playlist - Random Ads
- Previous by thread: Re: Dynamic Playlist - Random Ads
- Next by thread: Re: Dynamic Playlist - Random Ads
- Index(es):
Relevant Pages
|