3 Replies Latest reply on May 16, 2012 1:03 AM by Silviu Vergoti

    OSMF: How to create resource from XML string

    MicMic1234 Level 1


      I have a URL that sometimes returns a valid playmanifest.f4m and sometimes returns a string represantation of my media URL.

      On my loadComplete handler I would like to create the appropriate resource according to the returned data.

      If the data is a URL, I just create a StreamingURLResource and create the media element.

      Is there a way for me to create some resource that contains the XML? I noticed OSMF has StreamingXMLResource but its excluded, and it doesn't look like it can answer my use case.


      Do you have any suggestions?