You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,9 @@ import CoreMotion
10
10
#endif
11
11
12
12
finalclassDefaultCamera:FLTCam,Camera{
13
+
vardartAPI:FCPCameraEventApi?
14
+
varonFrameAvailable:(()->Void)?
15
+
13
16
overridevarvideoFormat:FourCharCode{
14
17
didSet {
15
18
captureVideoOutput.videoSettings =[
@@ -18,6 +21,8 @@ final class DefaultCamera: FLTCam, Camera {
18
21
}
19
22
}
20
23
24
+
private(set)varisPreviewPaused=false
25
+
21
26
overridevardeviceOrientation:UIDeviceOrientation{
22
27
get{ super.deviceOrientation }
23
28
set{
@@ -42,11 +47,30 @@ final class DefaultCamera: FLTCam, Camera {
42
47
/// Videos are written to disk by `videoAdaptor` on an internal queue managed by AVFoundation.
Copy file name to clipboardExpand all lines: packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation_objc/include/camera_avfoundation/FLTCam.h
-20Lines changed: 0 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -23,38 +23,19 @@ NS_ASSUME_NONNULL_BEGIN
23
23
// captureDevice is assignable for the Swift DefaultCamera subclass
0 commit comments