First of all thanks for such a great framework, its pretty nice architected and really helpfull.
I've been using media composition elements In custom made player experience,
What I came across and can't get rid off is memory usage by the flash player whilst media elements are in series and parallel.
Whenever I try to remove media elements from composition element,
or add/change/remove mediaElement it won't affect player to release memory.
'nulling' player media reference, removing element from media container, also won't help.
Aprox. adding up to twenty media elements causes 400-500 Mb of RAM usage, the more lements the more RAM..
Could guru's tell me how can I reduce/avoid such an issue, any workaround? (Is that issue related to flash player VideoObject/NetStream scope thats out of OSMF?)
Any advance will be apreciated.
.. function constructMediaElement():MediaElement
Any ideas/thoughts please?
It looks like there's indeed a memory build up when using multiple media elements in a serial composition.
I've currently logged a bug in Jira (link: http://bugs.adobe.com/jira/browse/FM-1227), and it will go throught a review process (hence I'm not sure when the fix will be out, but as soon as it is, I'll let you know).
Off the top of my head it looks like the netStreams used to create the serial composition are not reused, but rather new ones are added and cached with every new media element that starts playing, and that could be the cause. However developers need to take a closer look.
Feel free to check out the bug description and provide additional information if necessary.