Hi,
I have the same reszie issue.
However I got something working. I was trying to get an External
interface working, and I created a new function which was a
duplication of the existing play function essentially.
I found however that if you size the player using the meta data object
(meta.width, meta.height) rather then the video.width, video.height it
works correctly.
BUT it only works if you first play the video by hitting the play
button, THEN hit the play button on the HTML page that calls my
External Interface function. The video is resized correctly
Maybe some encoders do not write the information correctly?? My videos
were encoded using the older Flash Video Encoder and the Adobe Media
Encoder.
For example in the play function this gives me the correct sizes:
Here is the function I was using:
private function loadAndPlay(str:String):void {
STOP();
videourl = str;
ready = true;
var dim = 1;
var vert:Boolean = (W/H) > 1;
if(meta.width > meta.height && vert){
dim = H / meta.height;
} else {
dim = W / meta.width;
}
video.width = meta.width * dim;
video.height = meta.height * dim;
video.x = (W - video.width) / 2 >> 0;
video.y = (H - video.height) / 2 >> 0;
player.navigator.playBtn.visible =
(player.navigator.playBtn.visible?false:true);
player.navigator.pauseBtn.visible =
(player.navigator.pauseBtn.visible?false:true);
player.playBtn.visible = false;
player.screen.visible = false;
ns.play(str); // *** play video file
// PROGRESS
progressBarTimer.addEventListener(TimerEvent.TIMER,
progressBarTimerEvent);
progressBarTimer.start();
}
Don't know if this is really correct or anything but it maybe helps
find the issue?? And it is not really a fix as it does not work if you
copy that function back into the play function.
Joe
On May 20, 8:17 pm, Giovanni Busa <
busa.giovann...@gmail.com> wrote:
> hi there!
> first of all great job. very nice an unintrusive player!
> but i have the same problem.
> widescreen movies are "compacted" to a 4:3 ratio.
> I can' figured why. in the demo page there are some videos in 16:9 and
> shown in different sizes..
>
> thank you
>
> --
> You received this message because you are subscribed to the Google
> Groups "f4Player" group.
http://f4player.org|
http://groups.google.com/group/f4player