AVCaptureMovieFileOutput - no active/enabled connections

前端 未结 4 1910
萌比男神i
萌比男神i 2021-02-13 10:43

I am trying to record video in my iPhone app using AVFoundation. But whenever I click the Record button app crashes with this message

-[AVCaptureMovieFile

4条回答
  •  清歌不尽
    2021-02-13 11:31

    I find the reason of this error. check your session's "setSessionPreset" setting, photo's resolution setting is different from video, for iPhone5, video resolution of the back camera is 1920*1080, the front camere is 1280*720, and photo's max resolution is 3264*2488, so if you set error resolution to video, the connect will not be actived.

提交回复
热议问题