There are a few examples of how to do this in the ExamplePlayer sample app (though I'd definitely be interested in hearing if others have solved this in other ways).
Demo (go to Composition -> Poster Frame): http://mediapm.edgesuite.net/osmf/swf/ExamplePlayer.swf
Found the Poster Frame example which is exactly what I want to do. Now I'm trying to interaget that into the OSMFPlater sample but its not working.
in place of using url = configuration.url to set the media value I'm try this
var REMOTE_IMAGE:String = "http://mediapm.edgesuite.net/strobe/content/test/train.jpg";
var serialElement:SerialElement = new SerialElement();
serialElement.addChild(new PosterFrameElement(new URLResource(REMOTE_IMAGE)));
serialElement.addChild(new VideoElement(new URLResource(configuration.url)));
media = serialElement;
I have the supporting classes in place and they seem to be working. I see the image bink briefly sometime so it is getting loaded and the video plays so it is also getting loaded it just does not hold on the image until you hit play like it does in the exanple. I'm have trouble figuring out why.
I to would also be intrested if anyone has found any other ways to accomplish a poster frame.
Do you have autoPlay set to true or false? The poster frame example is intended for the latter case. (This gets set in OSMFPlayer.processSetupComplete.)
Yes, It is set to false.