0 Replies Latest reply on May 1, 2013 12:55 PM by the Masked Mushroom

    MediaElement.addMetadata(...) - doesn't update but overwrites

    the Masked Mushroom

      The addMetadata() method of the MediaElement accepts a namespace and a Metadata object as parameters.

       

      When a new object gets assigned to a namespace that previously existed, the Metadata object (a Dictionary) gets overwritten, not updated. Furthermore, the data property of the MediaElement's metadata member is private and so not accessible.

       

      This means that it becomes very difficult to achieve cummulative, or incremental layout configurations. Let's say that I wish to supply defaults to a custom MediaElement upon instanciation, those defaults will get overwritten as soon as I pass a new LayoutMetadata to it...

       

      Has anyone devised some way around this?