-
Notifications
You must be signed in to change notification settings - Fork 1.4k
iOS: Camera is locked in portraitmode even when device is in landscape #40
Comments
I seem to recall discussing this a while ago, and it seemed that the community deemed that this was the desired behaviour. The reasoning was that if the scanner responded to orientation changes, then it would be impossible to scan vertical barcodes. That said perhaps this should be configurable instead of locked one way or the other? The cut off screen on the iPad certainly seems like a bug though. |
I think making it configurable would be very nice. I can see the problem with vertical codes - but especially when using the iPad on horizontal codes, it can seem more like a bug than a feature:-) |
On native iOS, both issues can be fixed, and code scanning works fine even if device orientation is rotated. All you have to do, is to set the videoOrientation of the capture connection. And you have to take care of the varying frame bounds on screen rotation, which are the reason for the black border the OP mentioned. Please have a look here: If you're interested, I could send you a complete implementation I've just done in Swift. I just came here to see if I could save some time by using Phonegap instead of implementing scanning natively. :-) |
+ phonegap/phonegap-plugin-barcodescanner#40 + should be made run-time or compile-time configurable
@wildabeast is there any interest in completing this feature as a run-time switch and adding to other platforms? It'd be great to see this pulled in to the Phonegap build. |
This should be fixed with the latest telerik code merge. Resolving this issue. If you still find this issue, please reopen it |
Fixed in 5.0.1. |
This thread has been automatically locked. |
Seen on iPhone 5+6 and iPad 2. Others not tested.
On the iPad it seems about 30% of the screen is cut of (black).
The text was updated successfully, but these errors were encountered: