RMScannerView
RMScannerView copied to clipboard
Terminating app due to uncaught exception .
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** Multiple audio/video AVCaptureInputs are not currently supported.'
this happened when I called [scannerView startCaptureSession]; again after stop the session and the capture ?
self RMScannerView * domain: nil - code: 0 0x15549d30 ???
@Sam-Spencer Any update ?
what i did is stop and startScanSession , without touch "Capture" . but in this case the Camara will keep alive not frozen on the qr the user read it.
any way when u push view controller and back from it the redLine animation not work ?
Hi @Omarj,
I resolved adding this code at the end of stopCaptureSession (RMScannerView.m):
[self.captureSession removeInput:videoInput];
So, you have to call [self.scannerView stopCaptureSession]; before a new [self.scannerView startCaptureSession]; call.
You can solved this by
[scannerView setVerboseLogging:YES];
if ([scannerView isScanSessionInProgress]) {
[scannerView stopScanSession];
self.sessionToggleButton.title = @"Start";
} else {
[scannerView startScanSession];
self.sessionToggleButton.title = @"Stop";
}