IOS Camera Test Tutorial
Why use this tweak?
- This plugin is needed when using a virtual camera to replace photo capture, but the resulting image appears black or the app crashes. These issues typically arise when the app cannot determine whether the camera is in photo or video mode, or if the image size specifications are incorrect—all of which can cause the app to crash.
- This plugin is required when using a virtual camera for facial recognition or live streaming, where opening the camera causes the app to crash. The issue often stems from incorrect video specifications or mismatched modes (e.g., "Facial Recognition Mode" or "Live Streaming Mode"). Below are methods to determine these two modes:
- This plugin is required when replacing photo or video capture with a virtual camera fails to work. The issue often arises from unknown camera modes or unspecified size parameters. Specific camera configurations (e.g., mode and resolution) can only be determined through testing to resolve compatibility or stability issues.
- After activation, no additional setup is required. Simply reopen the target app to perform camera operations such as taking photos, facial recognition, live streaming, video recording, etc.
- This software automatically logs camera parameters (e.g., resolution, format) during photo or video operations in the target app. You can view these details directly in the KingKong app for analysis or debugging.
- Photos or videos captured by the camera will be saved to your album as image files. Transfer these files to a computer to view their size specifications (e.g., resolution, format).
Methods to Determine Camera Mode (Photo or Video)
Step 1: View the data directly in the KingKong app.
-
After capturing a photo or video, open the KingKong App directly to view the parameters (e.g., resolution, mode) on the interface.
For example:
Photo: width=3024px, height=4032px indicates a photo capture with a width of 3024 pixels and a height of 4032 pixels, corresponding to the photo mode.
Video: width=3024px, height=4032px indicates a video capture with a width of 3024 pixels and a height of 4032 pixels. The height exceeding the width signifies a vertical (portrait) orientation, which matches the configuration for Face mode.
Video: width=4032px, height=3024px indicates a video capture with a width of 4032 pixels and a height of 3024 pixels. The width exceeding the height signifies a horizontal (landscape) orientation, which matches the configuration for live streaming mode.
- Note: This method may not work for many cameras due to lack of permission to log data, but you can use the **second detection method** instead.
Step 2: View the images in the album. The KingKong app will save the camera operations as images to the album.
- If one or two portrait-oriented images appear in the album, it indicates that the camera is in photo mode. You should then resize your images to match the detected dimensions (e.g., 3024x4032 pixels) to ensure compatibility with the photo mode requirements.
- If multiple landscape-oriented images and one portrait-oriented image appear in the album, it indicates the camera is in photo mode. Resize your images to match the detected dimensions (e.g., width and height) to ensure compatibility with the photo mode configuration.
-
If multiple landscape-oriented images appear in the album, it indicates the camera’s video mode is set to live streaming mode. To resolve this:
Crop your video to match the detected image dimensions (e.g., width and height).
Rotate the video to landscape orientation on a computer before importing it to the phone. Note: Avoid adjusting the video orientation directly in the phone’s album, as this will not work and may corrupt the video file.
Ensure the final video aligns with the live mode requirements to prevent crashes or compatibility issues.
- If multiple portrait-oriented images appear in the album, it indicates the camera is in facial recognition mode. Subsequently, crop your video to match the output image dimensions (e.g., width and height) to ensure compatibility with the facial recognition mode specifications.