Question
How to tell when video.videoWidth and video.videoHeight are available?
From the documentation of Video.videoHeight:
"You may want to use this property, for example, to ensure that the user is seeing the video at the same size at which it was captured, regardless of the actual size of the Video object on the Stage."
This is exactly what I'm trying to do. Unfortunately, the documentation doesn't say when this property is available. From trial and error I have determined that it is not available immediately after NetStream.play, it is sometimes available and sometimes not available after NetStream.onMetaData, and it is available substantially before netStatus fires with the first NetStream.Buffer.Full event. So, when should I set my Video instance size to Video.videoWidth and Video.videoHeight??
"You may want to use this property, for example, to ensure that the user is seeing the video at the same size at which it was captured, regardless of the actual size of the Video object on the Stage."
This is exactly what I'm trying to do. Unfortunately, the documentation doesn't say when this property is available. From trial and error I have determined that it is not available immediately after NetStream.play, it is sometimes available and sometimes not available after NetStream.onMetaData, and it is available substantially before netStatus fires with the first NetStream.Buffer.Full event. So, when should I set my Video instance size to Video.videoWidth and Video.videoHeight??