Replies: 1 comment
-
|
This happens because the external camera only supports 30 FPS, yet it is being configured to 24 FPS.
It is possible to guard against this by retrieving the supported range via video.device.activeFormat, but this should ideally be handled within HaishinKit. https://developer.apple.com/documentation/avfoundation/avcapturedevice/activeformat try? await mixer.configuration(video: 0) { video in
// Check the range.
// video.device.activeFormat
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Could you please help take a look and let me know if there might be anything incorrect in my setup? The app crashes when setting the frame rate for an external camera, even though HaishinKit already checks isFrameRateSupported.
These crashes are observed in Firebase Crashlytics and occur quite frequently. I’ve included one representative example above, but there are many similar cases with different supported FPS ranges.
Here is my code:
Background / Tried Steps
Environment
Device: iPad mini (A17 Pro)
OS: iPadOS 26.3.1
External Camera (Type-C)
Crash log: Firebase Crashlytics
Haishinkit 2.2.5
Beta Was this translation helpful? Give feedback.
All reactions