简体   繁体   English

Phonegap iphone:相机插件:方向问题

[英]Phonegap iphone : camera plugin : orientation issue

I am using phonegap in my application. 我在我的应用程序中使用phonegap。

using camera plugin for capture and select image 使用相机插件进行捕捉并选择图像

I am facing orientation issue in different cases: 我在不同的情况下面临定向问题:

When allowEdit : true and iphone orientation is open, then it works fine 当allowEdit:true和iphone方向打开时,它工作正常

When allowEdit : true and iphone orientation is locked, then it work fine only when click photo in portrait orientation, in all other orientation image rotates 当allowEdit:true和iphone方向被锁定时,只有在纵向单击照片时才能正常工作,在所有其他方向图像中旋转

When allowEdit : false, then it work fine only when click photo in landscape left orientation, in all other orientation image rotates 当allowEdit:false时,只有在横向左方向单击照片时才能正常工作,在所有其他方向图像中旋转

Same issue with video too. 视频也有同样的问题。

Solved for image 解决了图像
passing argument correctOrientation: true from phonegap 传递参数correctOrientation correctOrientation: true来自phonegap的correctOrientation: true

But still have issue in Video.. Video rotate to 90 degree angle 但在视频中仍有问题。视频旋转到90度角

AppDelegate.m的webViewDidFinishLoad函数中尝试此操作。

[UIView setAnimationsEnabled:NO];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM