AVCaptureMovieFileOutput - no active/enabled connections

前端 未结 4 2073
萌比男神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:25

    I had the same problem while changing videoDevice activeFormat and later wanted to record video. Because I was using best quality video I had to set sessionPreset to high, like following

    _session.sessionPreset = AVCaptureSessionPresetHigh;

    and it worked for me! :)

提交回复
热议问题