add log warning that either onInitReady or onVideoChunkReady are not valid

- however I am not seeing the log when running from yarn
This commit is contained in:
Rui Rodrigues 2024-07-16 10:20:13 +01:00
parent 91767e71c8
commit 694d9cfa8c

View File

@ -342,6 +342,7 @@ public final class CameraView: UIView, CameraSessionDelegate {
ReactLogger.log(level: .info, message: "Chunk ready: \(chunk)")
guard let onVideoChunkReady, let onInitReady else {
ReactLogger.log(level: .warning, message: "Either onInitReady or onVideoChunkReady are not valid!")
return
}