test onInitReady and onVideoChunkReady

This commit is contained in:
Rui Rodrigues 2024-07-16 08:07:21 +01:00
parent b03f9ea423
commit 20f8fa2937

View File

@ -33,6 +33,12 @@ class ViewController: UIViewController {
self.recordButton.isHidden = false self.recordButton.isHidden = false
} }
} }
cameraView.onInitReady = { json in
print("onInitReady:", json ?? "nil")
}
cameraView.onVideoChunkReady = { json in
print("onVideoChunkReady:", json ?? "nil")
}
Task { @MainActor in Task { @MainActor in
await requestAuthorizations() await requestAuthorizations()