Zxing条码扫描器PhoneGap插件iOS横向模式

我已经使用PhoneGap 1.7.0和Zxing Barcode Scanner从https://github.com/phonegap/phonegap-plugins/tree/master/iOS/BarcodeScanner在ipad上实现了Zxing条码扫描器。 但方向只是肖像。 我想通过修改这个代码来改变它的风景

if ([previewLayer isOrientationSupported]) { [previewLayer setOrientation:AVCaptureVideoOrientationPortrait]; } 

和这个代码也一样

 if (interfaceOrientation == UIInterfaceOrientationPortrait) return YES; 

在CDVBarcodeScanner.mm中,将Portrait的值更改为LandscapeRight。 我的问题是video不是全屏,右边有黑色部分。 此外,扫描条形码时,即使在横向模式下纵向不景观也只能扫描成功。

是否有任何解决scheme,使景观模式完美?

删除这个

 if (result.empty() && hints.getTryHarder() && image->isRotateSupported()) {} 

在zxing-all-in-one.cpp文件中