Skip to main content
Inspiring
November 25, 2015
Question

Camera rotated 90º on Flash Professional CC

  • November 25, 2015
  • 1 reply
  • 339 views

Hello,

I'm working with Flash Professional CC and exporting my .fla for AIR 17.0 for Android.

In my .fla I get the Camera like follows:

          cam1 = Camera.getCamera();

Once I get the camera I attach it to a NetStream:

          netLocalStream.attachCamera(cam1);

And then I receive it:

          receivedVideo.attachNetStream(netRemoteStream);

But this image received is rotated 90º. How can I fix it?

My App is portrait oriented.

Can someone help me?

Thank you

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
November 25, 2015

apply a compensatory rotation to your video instance, receivedVideo (but make sure that will work with other video cameras because your test camera is probably rotated).  the easiest solution would be to let users control the video's rotation so you don't have to deal with camera rotation differences.