flex – 在Android中为空中旋转RAW CAMERA(不仅仅是视频)

前端之家收集整理的这篇文章主要介绍了flex – 在Android中为空中旋转RAW CAMERA(不仅仅是视频)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_403_0@
我正在使用Flex Hero Pre-release 4.5,这是一款适用于 Android的Flex Mobile应用程序.

我有一种情况,原始相机正在屏幕上显示,并在网络中传输.显然现在在AIR for android如果你只是在肖像中使用原始相机,它实际上并没有以肖像方式拍摄相机……它在错误的方向上是90度.所以,这是一个代码片段,我旋转了视频,它在手机上看起来很棒.但是,我需要将凸轮连接到网络流并发送它…但它发送侧面视频,我真的不想在远端调整它.我无法将视频附加到网络流……任何人都有任何想法,而不仅仅是等待AIR更新吗?

//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能尽快解决这个问题.但在那之前,我只是好奇,如果有人知道如何旋转相机并将其附加到网络流.

解决方法

嗯,对我而言,除了旋转远端视频之外,它看起来是唯一真正的解决方案就是让adobe修复相机.所以,如果你发现这个页面是因为你对Android上的相机感到沮丧而无法正确纵向旋转,请在这里投票给错误,让他们来解决它:

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

原文链接:https://www.f2er.com/flex/174263.html

猜你在找的Flex相关文章