yeahdongcn / RSBarcodes

1D and 2D barcodes scanner and generators for iOS7 with delightful controls.
MIT License
383 stars 59 forks source link

Use RSScannerViewController with iOS 9's Slide Over multitasking #28

Closed matiaskorhonen closed 9 years ago

matiaskorhonen commented 9 years ago

Is it possible to use RSScannerViewController in a Slide Over on an iPad running iOS 9?

At appears that it's possible to use the camera while in Slide Over (or at least the Facetime app does this), but at the moment I just get a black screen when I try to scan a barcode when my app is opened in a Slide Over (screenshot below). No errors show up in the logs or console, so I don't know what's going wrong.

When running “normally”, barcode scanning works great.

RSScannerViewController in a Slide Over

yeahdongcn commented 9 years ago

I will have a try this weekend.

yeahdongcn commented 9 years ago

I received a AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableWithMultipleForegroundApps notification, in the header it tells that @constant AVCaptureSessionInterruptionReasonVideoDeviceNotAvailableWithMultipleForegroundApps An interruption caused when the app is running in a multi-app layout, causing resource contention and degraded recording quality of service. Given your present AVCaptureSession configuration, the session may only be run if your app occupies the full screen. So I'm afraid it's not doable with the slide over.

matiaskorhonen commented 9 years ago

Thanks, at least now I know that I wasn't just doing something silly…

yeahdongcn commented 9 years ago

Maybe you can try search some libraries with don't use AVCaptureSession.

Sumit1991Saha commented 7 years ago

@yeahdongcn do you know about any specific library which can be used to accomplish it apart from using UIImagePickerController

yeahdongcn commented 7 years ago

I've no idea what are you going to implement or just you want to find replacements of UIImagePickerController?