I am using a flash media server and doing dynamic switching.
I set the size of my video object to the size of the playing video.
sometimes when I switch videos quickly I get the video object resizing a couple of times between the correct size and the size of the previous video.
The size is grabbed and set like this.I see the size change in the trace.PHP Code:
function onMetaData(info:Object):void
{
vidHeight = info.height;
video.height = vidHeight;
trace("vidHeight " + vidHeight);
}
what might cause this?
Do I need to close the connection before loading a new video?
Or do I need to flush the buffer?
You can see in this from the output window that I get a change in size from the metadata
-------------
NetConnection.Connect.Success
NetStream.Buffer.Full
NetStream.Play.Transition
NetStream.Play.Reset
NetStream.Play.Start
vidHeight 370
vidHeight 370
NetStream.Buffer.Full
NetStream.Play.Transition
vidHeight 288
vidHeight 370