I am working through the example given with the OSMF download and it says :
For visual content, determining how it is sized and scaled is often integral to a successful viewing experience. Because this functionality can be so important, OSMF provides access to scale modes within MediaPlayerSprite.
To control the content scale mode, set MediaPlayerSprite.scaleMode with one of the following constants:LETTERBOX, NONE,STRETCH, ZOOM
package
{
import flash.display.Sprite;
import org.osmf.media.MediaPlayerSprite;
import org.osmf.display.ScaleMode;
import org.osmf.media.URLResource;
[SWF(width = "640",height = "352")]
public class HelloWorld extends Sprite
{
public function HelloWorld()
{
// Create the container class that displays the media.
var sprite:MediaPlayerSprite = new MediaPlayerSprite();
addChild(sprite);
sprite.scaleMode=ScaleMode.LETTERBOX
// Assign the resource to play. This generates the appropriate
// MediaElement and passes it to the MediaPlayer. Because the MediaPlayer
// autoPlay property defaults to true, playback begins immediately.
sprite.resource = new URLResource("video/myVideo.f4v");
;
}
}
}
This does not resize the MediaPlayerSprite on stage. Can someone shed some light on this for me?
North America
Europe, Middle East and Africa
Asia Pacific