在空中旋转RAW相机(不只是视频)特供机器人 [英] Rotate RAW CAMERA (not just the video) in air for android

查看:180
本文介绍了在空中旋转RAW相机(不只是视频)特供机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Flex英雄pre-4.5版,这是一个Flex手机应用程序为Android。

I'm using the Flex Hero Pre-release 4.5 and this is a Flex Mobile application for android.

我有一个情况被显示在屏幕上的原始相机及其在NetStream收发。显然,目前已经在Android的AIR,如果你只是使用原始相机在人像它并不实际拍摄相机在人像......这是在错误的方向旋转90度。所以,这里是一个code段,其中i旋转的视频,它看起来伟大的电话。但是,我需要凸轮附加到NetStream并发送...但它发出侧身视频,我真的不希望在远端进行调整。我不能附加了视频到NetStream ......任何人有任何想法我可以做什么,而不是只是在等待这一个AIR更新?

I have a situation where the raw camera is being displayed on the screen and its being transmitted in a netstream. Apparently right now in AIR for android if you’re simply using the raw camera in portrait it doesnt actually shoot the camera in portrait...it’s 90 degrees in the wrong direction. So, here’s a code snippet where i rotated the video and it looks great on the phone. however, i need to attach the cam to a netstream and send it...but it sends sideways video, and i dont really want to adjust it on the far end. and I can’t attach a video to a netstream...Anyone have any ideas what I could do rather than just waiting for an AIR update for this?

//i know i have width and height mixed up, its because im rotating it in a second and i dont want it to be stretched
                                nearVideo = new Video(near_video.height,near_video.width);

var m:Matrix = new Matrix();
//rotate here
m.rotate(Math.PI/2); 
this.nearVideo.transform.matrix = m;
//repositioning it so it looks like its fitting in the container correctly
nearVideo.x=near_video.width;
nearVideo.y=(near_video.height-near_video.height);

if (Camera.isSupported)
{
nearCam = Camera.getCamera();
}

nearCam.setMode(near_video.height,near_video.width,10);
nearVideo.attachCamera(nearCam);
near_video.addChild(nearVideo);

//now its all great on screen...but when this comes up

sendStream.attachCamera(nearCam);

//i’m sending sideways video... 

编辑:我知道我可以告诉远端只用来显示横盘摄像机旋转的视频对象的。但由于多种原因,这不是一个解决方案,我想接受。希望Adobe将刚刚解决这个问题很快。但在那之前我只是好奇,如果也许有人知道我怎么能旋转摄像头,并将其安装到NetStream的。

edit: I know i could tell the far end to just rotate the video object its using to display the sideways camera. but for many reasons that's not the a solution i want to accept. Hopefully adobe will just fix this soon. But until then im just curious if maybe someone knows how i can rotate the camera and attach it to the netstream.

推荐答案

好了,对我来说,它看起来就像是唯一真正的解决办法不是旋转的远端的视频另一种是只得到土坯固定相机。所以,如果你找到了这个网页,因为你感到沮丧与机器人不能够在肖像正常旋转,请在这里投了错误,并让让他们来解决它的摄像头:

Well, To me it's looking like the only real solution other than rotate the video on the far end is to just get adobe to fix the camera. So, if you found this page because you were frustrated with the camera on android not being able to rotate correctly in portrait please vote up the bug here and lets get them to fix it:

http://bugs.adobe.com/jira/browse/SDK-30317

这篇关于在空中旋转RAW相机(不只是视频)特供机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆