I was using OSMF that comes with Flash Builder 4.5/4.6 until now... This SWC file is about 341KB, and when I call this method to get the Media Element for a FLV/MP4 file it works just fine -
Now, I get the 1.6 release of OSMF so I could take advantage of StageVideo, so I added this new SWC file to the project path (the SWC is of 229 KB), but when I try to call the same above code, the MediaElement returned is NULL for a FLV or MP4 file...
What is going wrong? Can someone help me out please?
Are you trying to call osmfMediaFactory from what object a media object?
One flow could be this:
var playerInstance = new MediaPlayerSprite();
var url_resource:URLResource = new URLResource('myVideo.mp4');
playerInstance.resource = url_resource;