4 Replies Latest reply on Jun 10, 2010 5:54 PM by smarcus99

    fullscreen switch visual artifacts

    smarcus99 Level 1

      I was able to get sprint8 to look good into/outof fullscreen in the Flex application I've working on -- but no luck with FC1.

       

      I've tried a liberal sprinkling of

       

      invalidateSize

      invalidateDisplayList

      MediaContainer.layoutRenderer.invalidate

      // switch the stage to fullscreen

      MediaContainer.validateNow

      validateSize(true)

      validateNow

      MouseEvent.updateAfterEvent

       

      (which reveals I don't understand what's going on) but no luck!

       

      Has anyone had any success in getting a smoother fullscreen switch?

       

      Also, the OSMFPlayer sample exhibits a "jumpy" resize into/outof fullscreen mode too!

       

      Thx

      S

        • 1. Re: fullscreen switch visual artifacts
          smarcus99 Level 1

          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!

          • 2. Re: fullscreen switch visual artifacts
            bringrags Level 4

            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):

             

                [SWF(width="640", height="352")]
                public class HelloWorld extends Sprite
                {
                    public function HelloWorld()
                    {
                        var sprite:MediaPlayerSprite = new MediaPlayerSprite();
                        addChild(sprite);

             

                        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.beginFill(0xFFFFFF);
                        button.graphics.drawRect(0, 0, 20, 20);
                        addChild(button);
                        button.addEventListener(MouseEvent.CLICK, onClick);
                    }
                   
                    private function onClick(event:MouseEvent):void
                    {
                        stage.displayState = StageDisplayState.FULL_SCREEN;
                    }
                }

            • 3. Re: fullscreen switch visual artifacts
              smarcus99 Level 1

              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...

              Thanks!

              • 4. Re: fullscreen switch visual artifacts
                smarcus99 Level 1

                I've found another example of the problem:

                 

                http://worldcup.vevo.com/

                 

                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?

                 

                Thx