You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using NextLevel camera in our project and the videos are very pixellated upon preview.
We are resizing the camera preview frame using a previously suggested block of code found in other reported issues on this project:
let addValue = self.cameraPreviewLayer.frame.size.width.truncatingRemainder(dividingBy: 4.0)
let dimensions = CGSize(width: cameraPreviewLayer.bounds.size.width + addValue, height: cameraPreviewLayer.bounds.size.height + addValue)
This seems to work great on smaller phones! However on the iPhone XS Max, we are seeing the top and bottom of the video is cut off. This only happens on the XS Max.
We are resizing our preview frame by setting the bounds to 16x9 by multiplying the width of the screen by 1.77778. This ensures both the preview layer are in the same aspect ratio of all phones, and ensures the export is the same size.
Is there a similar fix going around? It seems the iPhone XS Max requires additional mathematical operations to get the video configuration dimensions accurate.
The text was updated successfully, but these errors were encountered:
We are using NextLevel camera in our project and the videos are very pixellated upon preview.
We are resizing the camera preview frame using a previously suggested block of code found in other reported issues on this project:
This seems to work great on smaller phones! However on the iPhone XS Max, we are seeing the top and bottom of the video is cut off. This only happens on the XS Max.
We are resizing our preview frame by setting the bounds to 16x9 by multiplying the width of the screen by 1.77778. This ensures both the preview layer are in the same aspect ratio of all phones, and ensures the export is the same size.
Is there a similar fix going around? It seems the iPhone XS Max requires additional mathematical operations to get the video configuration dimensions accurate.
The text was updated successfully, but these errors were encountered: