Forum Moderators: open

Message Too Old, No Replies

Dynamic ASX Playlist - how to create one?

         

majestique

10:33 pm on Apr 28, 2004 (gmt 0)

10+ Year Member



my site is modeled after [foxsports.com...]
They have a playlist.asx file that i want to get my hands on! is there a way to get it?

I think the best technique for me now is to have a video.asx file that contains all my videos.

and an adverts.asx to have all my advertisement videos...

how do I embed my video page to play all the videos one after another and play the advertisements videos randomly between the videos?

also... is there a way to anchor to a particular video in the videos.asx page?

so if i want to view video #3 in playlist.asx... i'd refer to playlist#video3 or playlist?name=video3..

that's what foxsports seems to have..

TIA!

tedster

11:31 pm on Apr 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The asx file is not the media resource itself - it's a redirect file that points to a windows media file (something like the way a ram file can point to a REAL Media resource.

[msdn.microsoft.com...]

...gives a decent introduction, and a Google search on "ASX file" turns up lots of developer information.

majestique

3:55 am on Apr 29, 2004 (gmt 0)

10+ Year Member



yeah i know.. the asx file is a playlist file just like the topic =) anyway.. I just wanted to know a way if I can code or if the code exists for the asx file to play my video archives as well as my ad archive dynamically so I don't have 10 asx files to manage @_@ yeah i've read all those resources already.. just that.. they don't really do the way the foxsports.com video does..

if you go to foxsports video section.. do a properties on the video.. you'll see this
[foxsports.com...]

currently.. mysite is like this www.mysite.com/video/playlist.asx and in the asx file there are just basic static list of video and commercial combinations.. which is really inefficient for management purposes.. it looks like i have to pick up a book to do what foxsports does..

mediamaster

4:21 am on Apr 29, 2004 (gmt 0)



it is absolutely not possible to retrieve foxsports playlist.asx dynamic playlist file.. because the http protocol will not allow the server to send you the original script.. only ftp etc.. i've been searching all over the net as well for the dynamic playlist.. it's still new and not many sites have this feature - thus not much support is out there unfortunately...

tedster

10:34 pm on Apr 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forum, mediamaster.

Does this page at microsoft offer any helpful directions?

[microsoft.com...]

imptech

12:38 am on Jan 22, 2005 (gmt 0)

10+ Year Member



Hi,

This is very possible using PHP and Apache.

In the Apache configuration we add .asx files to
be processed by the PHP engine.

Simply like this:

AddType application/x-httpd-php .php .asx

Now you can write PHP code in you .asx files, thus
making the dynamic.

Here is a snippet that call an dynamic .asx file:
movie.asx?cat=hardcore&movie=072_twisted&scene=01&size=small

Here is a snippet of the dynamic movie.asx file:

foreach( $myScenes[0]->media as $media )
{
if( preg_match( "/\.wmv$/", $media ) )
{
echo "<entry>\n";
echo "<ref href=\"$media\" />\n";
echo "</entry>\n\n";
}
}

For me this works like a charm and am very pleased.

Hope this helps.
Best Regards
Rudi