This project has moved. For the latest updates, please go here.

asx files

Sep 22, 2013 at 12:58 AM
Hi!

Thanks for all the hard work - My .m3u8 files are playing nicely.

Do you know if it is possible to play .asx files?

Thanks
Coordinator
Sep 22, 2013 at 3:24 PM
You're welcome.

It depends on what is in the playlist. If the media is supported, then the simplest thing to do is probably to use LINQ-to-XML to extract the URLs, convert them into PlaylistItem instances, then assign them to the player's playlist.

I think something like this should extract the URLs:
            var xDocument = XDocument.Load(asxSource);

            var urls = from entry in xDocument.Descendants("entry")
                    select entry.Element("ref").Attribute("href").Value;
It gets much more complicated if the media isn't supported.