Dynamic width/height of streaming video

Hi there,

I was wondering if anyone knows how to retireve the original width and height properties of a streaming video? I have one video player, and want to be able to load in a bunch of videos with different dimensions, and resize the video player accordingly. Is this doable?

Thanks.