@nicholas.tenn We do not have a Camera 2 API example yet but we are working on updating the Unity Examples to use the new APIs. We will share more information one it becomes availably.
While waiting for sample code from Magic Leap, I've switched my (native, not Unity) app from MLCamera module to my own Android NDK Camera2-based implementation. I don't know if it's worth reporting it, but just in case, logcat outputs the following messages in Debug build type when parsing the camera characteristics for Camera Id 0 (I didn't try the other Camera Ids):
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638402! count 0, type 0
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638403! count 0, type 0
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1835009! count 0, type 0
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1835010! count 0, type 0
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638407! count 0, type 0
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638408! count 0, type 0
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638402! count 0, type 0
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638403! count 0, type 0
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1835009! count 0, type 0
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1835010! count 0, type 0
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638407! count 0, type 0
2023-12-21 18:30:22.193 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638408! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638402! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638403! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1835009! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1835010! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638407! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638408! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638402! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638403! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1835009! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1835010! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638407! count 0, type 0
2023-12-21 18:30:22.194 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638408! count 0, type 0
2023-12-21 18:30:22.199 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638402! count 0, type 0
2023-12-21 18:30:22.199 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638403! count 0, type 0
2023-12-21 18:30:22.199 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1835009! count 0, type 0
2023-12-21 18:30:22.199 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1835010! count 0, type 0
2023-12-21 18:30:22.199 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638407! count 0, type 0
2023-12-21 18:30:22.199 11368-11532 ACameraMetadata com.mycompany.myapp E filterDurations: malformed duration key 1638408! count 0, type 0
I didn't noticed any problem using the camera then.
The ability to obtain camera frames via the Android NDK should become available in the upcoming 2.2.0 Unity SDK release. That said, MLCamera APIs will remain in the SDK so Unity developers can continue to use the Magic Leap Camera API until further notice. We will post more information about transitioning to the new API and it's functionality well in advance of the MLCamera API removal.
Dear @emaschino, Have you been able to fix this logging issue by any chance? I am also experiencing a similar case and I am also utilizing Camera2 NDK APIs.