Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
ryuta46
2023-04-12 07:30:31 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f18b117d0e4d0f1a817c39db66127e139e193868
f18b117d
1 parent
d9d4f69e
imp: (iOS) reset scale when camera session started.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
ios/Classes/MobileScanner.swift
ios/Classes/MobileScanner.swift
View file @
f18b117
...
...
@@ -204,6 +204,13 @@ public class MobileScanner: NSObject, AVCaptureVideoDataOutputSampleBufferDelega
}
catch
{
print
(
"Failed to set initial torch state."
)
}
do
{
try
resetScale
()
}
catch
{
print
(
"Failed to reset zoom scale"
)
}
let
dimensions
=
CMVideoFormatDescriptionGetDimensions
(
device
.
activeFormat
.
formatDescription
)
return
MobileScannerStartParameters
(
width
:
Double
(
dimensions
.
height
),
height
:
Double
(
dimensions
.
width
),
hasTorch
:
device
.
hasTorch
,
textureId
:
textureId
)
...
...
Please
register
or
login
to post a comment