The visual glitches during a switch into/out of full screen are still present in the OSMFPlayer tagged 1.0rc2.
Can anyone help with advice as to how to do a clean full screen switch?
Otherwise, the 1.0rc2 fixed a lot of issues I was having with 1.0fc1. Thanks!
Can you post the code you're using to go into fullscreen? Are you using fullScreenSourceRect or not? Here's a barebones example that works for me (i.e. no visual artifacts):
public class HelloWorld extends Sprite
public function HelloWorld()
var sprite:MediaPlayerSprite = new MediaPlayerSprite();
sprite.resource = new URLResource("http://mediapm.edgesuite.net/strobe/content/test/AFaerysTale_sylviaApostol_640_500_short.f lv");
var button:Sprite = new Sprite();
button.graphics.drawRect(0, 0, 20, 20);
private function onClick(event:MouseEvent):void
stage.displayState = StageDisplayState.FULL_SCREEN;
I compiled the sample code provided above and the switch into fullscreen did exhibit a screen flash and generally not look good.
For comparison, nowhere near as smooth as the youtube player.
The test of the sample code provided was with latest release Firefox and Flash Player MAC 10,0,45,2 (Debug player).
My code isn't using fullScreenSourceRect and when I said "visual artifacts" I meant screen flashing and visible resize of the frame on screen -- not stray pixels or anything like that.Happy to post the code I'm using -- but not sure if it will help if the minimal sample above doesn't look right...
I've found another example of the problem:
When you switch to fullscreen using this osmf-based player you can see the video at the old framesize before it resizes to the new fullscreen size.
The OSMFPlayer sample exhibits the same cosmetic problem.
It's probably less noticeable on the latest/fastest machines -- but it's noticeable on an older Mac running Flash Player 10.1.
Is there a workaround?