Forum Moderators: open
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!
[msdn.microsoft.com...]
...gives a decent introduction, and a Google search on "ASX file" turns up lots of developer information.
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..
Does this page at microsoft offer any helpful directions?
[microsoft.com...]
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