add filePath to define recording directory
- add CaptureError.createRecordingDirectoryError - stub RCTViewManager to be able to compile CameraViewManager
This commit is contained in:
@@ -14,10 +14,15 @@ class ViewController: UIViewController {
|
||||
@IBOutlet weak var recordButton: UIButton!
|
||||
|
||||
let cameraView = CameraView()
|
||||
let filePath: String = {
|
||||
NSTemporaryDirectory() + "TestRecorder"
|
||||
}()
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
try? FileManager.default.removeItem(atPath: filePath)
|
||||
|
||||
cameraView.translatesAutoresizingMaskIntoConstraints = false;
|
||||
view.insertSubview(cameraView, at: 0)
|
||||
NSLayoutConstraint.activate([
|
||||
@@ -98,7 +103,8 @@ class ViewController: UIViewController {
|
||||
options: [
|
||||
"fileType": "mp4",
|
||||
"videoCodec": "h265",
|
||||
]) { callback in
|
||||
],
|
||||
filePath: filePath) { callback in
|
||||
print("callback", callback)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user