iOS 에서 최신 폰들 아이폰 미니 13, 12 프로 등등 에서 카메라 동영상 촬영 시 최초 블랙 스크린 되는 이슈가 있었다.
(사진은 괜찮고, 동영상 한번 촬영하고 나면 두번째 부터는 블랙스크린이 일어나지 않는다.)
os 문제인가 했는데 다른 폰들은 같은 버전에서 (16.2) 에서 일어나지 않아서 기종 카메라 이슈인 것 같다!
해결 방법!
cameraController?.initialize().then((_) {
cameraController?.lockCaptureOrientation(DeviceOrientation.portraitUp);
cameraController?.prepareForVideoRecording();
update();
});
cameraController 를 initialize() 해준 다음에 prepareForVideoRecording() 해주면 된다!
iOS 카메라 비디오 녹화 시 다른 이슈가 보고 싶다면!
https://zoiworld.tistory.com/957
[Flutter] iOS 카메라 비디오 녹화 시 간헐적으로 블랙 프레임 생기는 현상
iOS 에서 카메라 플러그인 사용하여 비디오 녹화 시 간헐적으로 첫 프레임이 검은색으로 노출되는 경우가 있다. 블랙 프레임의 원인은 무엇입니까? 비디오 버퍼보다 오디오 버퍼가 먼저 도착한
zoiworld.tistory.com
https://github.com/flutter/flutter/issues/57831
when using camera plugin to record video in ios, the first frame may be black · Issue #57831 · flutter/flutter
when using camera plugin to record video in ios, the audio is on,the first frame will be black.but when the audio is false,this time record video,and the first frame be black question will be gone.
github.com
'# 02 > Flutter' 카테고리의 다른 글
[Flutter] Fuchsia 란? (0) | 2023.02.02 |
---|---|
[Flutter] Flutter가 Dart 언어를 사용 하는 이유! (0) | 2023.02.01 |
[Flutter] 3.7.0 새로운 기능! (0) | 2023.01.29 |
[Flutter] iOS UiKitView 구현 시 실선 노출 !! (0) | 2022.12.22 |
[Flutter] iOS 카메라 비디오 녹화 시 간헐적으로 블랙 프레임 생기는 현상 (0) | 2022.12.05 |