I'm creating a dynamic OSMF plugin. That plugin needs to load external SWF file before sending the PLUGIN_LOAD event to the player.
How can I override the dispatch of the PLUGIN_LOAD event on my MyCustomPluginPluginInfo custom class ?
If it's not possible, the solution is to create a new MediaElement within my MyCustomPluginPluginInfo:
var mediaElement:MediaElement = mediaFactory.createMediaElement( new URLResource(null) ); //the resource is null at this point
On the player side I add that line when the plugin is loaded successfully:
//Add listener on Media Element creation
Is it a god solution or not ?
Is there another way to do that ?
I'm not sure you can do it through loadPlugin stage due to an swf loader is used in factory on that moment.
As for loading an extra swf "per instance" way I'd rather do it using an element LoadTrait than try to bypass the standard factory way.