Unfortunately, you cannot intercept the camera stream in order to change it before sending it to the server, this is a bug that I hope will be fixed in the next version of Air. If for this there is no ticket for him, you should open it.
However, not all is lost! What the camera class does with NetStream, in fact, simply sends the video bytes that you shoot from the camera, and, of course, an algorithm for changing the quality depending on the bandwidth. You can try to do the same on your own, however, the quality change algorithm will be a little more difficult to implement, but not impossible.
Essentially, since you are showing video from a camera somewhere (perhaps the Video class?), You can take bitmap data, convert it to ByteArray, and send it via NetStream using send . Of course, the server (or another client) must know what to do with it.
No guarantees if this would work the way I had never tried, but that is what I would do. Another way to do this is to “tell” the media server (I assume that you are using it) that you are currently in landscape mode (there is just a logical flag) and then the server can do the conversion for you and send it to another person .
In any case, it will not be easy. Good luck.
J_A_X
source share