mconf / bbb-air-client

Mobile client for BigBlueButton and Mconf based on Adobe Air
Other
11 stars 32 forks source link

Rotated camera #8

Closed hipoloco closed 8 years ago

hipoloco commented 9 years ago

On mconf-mobile-0.6, when it's used on a smartphone and the camera is activated, the image is rotated 90 degrees left.

screenshot_2015-07-02-14-12-53 screenshot_2015-07-02-14-14-33

bhargavms commented 8 years ago

How do you actually fix this??

fcecagno commented 8 years ago

Yes, the camera rotation is done by Mconf-Live, so if it's properly configured, it should rotate the camera according the configuration you set in the app.

bhargavms commented 8 years ago

Have a look at this thread, https://forums.adobe.com/thread/842765, it seems this is a bug in the AIR sdk's camera api, I have tried rotating the preview, but I cannot fix the recording orientation.

fcecagno commented 8 years ago

This is not a preview, this is the actual stream fetched from the server. Did you try to watch the same stream in the web client? In order to use the camera rotation feature on Mconf-Mobile, you need to use Mconf-Live in the backend, because this is a server-side feature.

bhargavms commented 8 years ago

Yes, I'm not talking about the stream from the server, the problem is the video stream that is being sent from the device is rotated by 90 degrees because AIR apparently only records in landscape aspect ratio (i.e width greater than height). So the raw camera captures frames and flips it..

fcecagno commented 8 years ago

I understand that, this is a limitation on AIR that can only stream the camera rotated by 90 degrees. This is why we implemented a server-side component that rotates back the stream to the correct position.

bhargavms commented 8 years ago

ah, I did NOT know about that ! Thanks for that piece of information.

fcecagno commented 8 years ago

You're welcome!