2
votes

Im looking into using and customizing FLVPlayback in a project. How to go about this is clear, but I noticed 1 anoying thing. When going fullscreen, first Flash player goes fullscreen and then briefly shows the FLVPlayback component in its original size, before jumping to show the video itself fullscreen.

I noticed on Youtube this doesnt happen. How can I escape this 'flicker' and have the video go fullscreen as the videos do on youtube?

Thanks a lot for any tips!

Marcel

2

2 Answers

0
votes

in general FLVPlayback along with most of the components built into flash are junk. You are much better off building your own flv player using the NetConnection and NetStream class. Build it once well and generic enough to edit the control visuals and you have yourself a bullet proof flv player for all your projects.

http://actionscriptexamples.com/2008/02/26/loading-flv-files-in-actionscript-30-using-the-netconnection-and-netstream-classes/

0
votes

Just to say I've used FLVPlayback on jobs many times, and sure it's buggy, but I've never seen this problem. You can definitely fix it. How are you going fullscreen? I've recently being doing something like this...

import flash.display.*;
import flash.events.*;
import fl.video.*;
import flash.geom.Rectangle;

.
.
.

myFLVPlayback.fullScreenTakeOver = false;
mc.stage.fullScreenSourceRect = new Rectangle(0,0,480,360);
myFullScreenButton.addEventListener(MouseEvent.CLICK, onFullScreenButtonClicked);

private function onFullScreenButtonClicked(e:MouseEvent):void {
  mc.stage.displayState = StageDisplayState.FULLSCREEN;
}

(though i appreciate you might be using the fullscreen button in an FLVPlayback skin, so this might not be perfect)

NOTE: I just hammered that code in so it might not be perfect/complete. Hopefully you'll find it useful.

++ i'd make sure you set the size and scale of your flvplayback too, e.g. myflvplayback.setSize(w,h)

++ how about myflvplayback.scaleMode = VideoScaleMode.NO_SCALE;