I'm trying to display a video feed which is provided as a server side playlist (ASX) by another party. The playlist contains some unsupported features, such as repeat:
<ASX VERSION="3.0">
<REPEAT COUNT="4">
<EntryRef href="http://some-ad-network.com/ad.asx" />
<Entry>
<Ref href="http://video-host/content-primary-source"></Ref>
</Entry>
<Entry>
<Ref href="http://video-host/content-secondary-source"></Ref>
</Entry>
</REPEAT>
</ASX>
Silverlight 2.0 doesn't support the REPEAT element and throws an exception:
REPEAT Element: This is not supported and will raise a MediaError with AG _ E _ ASX _ UNSUPPORTED _ ELEMENT.
Is there a workaround? Can I pull the ASX file down via HttpWebRequest, parse it, and request the streams individually? Do you know of a library or some sample code somewhere which handles ASX file parsing?