Copy link to clipboard
Copied
i have to instances of video. they differ in dimension and aspect-ratio. If i attache netstreams to them the second video displays in dimension of first video. setting video size explicit by new video (480,360) or video.width = 480; video.height = 460; does not solve the problem. If i Leave setting size completely second video is in correec dimension but display jiggered and returns wrong dimensioninfos. Any Ideas to to solve it?
Copy link to clipboard
Copied
if video is the instance name of your Video object, use:
function onMetaData(info:Object):void {
video.width = info.width;
video.height = info.height;
}