Mike T. Henderson

I make interactive things.

Categories:


More Mike:

Maintain Pixel Aspect Ratio using NetStream in AS3

February 17, 2009

While recently working with the NetStream class, I was surprised to learn that there was no preset method in place for maintaining the pixel aspect ratio. The situation I faced was that I was building a video player that needed to host both 4:3 and 16:9 ratios. However if the Video object's dimensions are preset to that of a 16:9 ratio, and a video with a 4:3 ratio is loaded in, instead of the clip maintaining shape and centering within the video object, it instead flushes with the edges of the 16:9 dimensions.

Makes sense, right? In reality it's doing what I ask. It's displaying the video at the dimensions I specified. However, it's distorting the the video in the same process.

Continue Reading

0 Comments | Posted under Video