Change camera capture device while recording a video

前端 未结 3 451
后悔当初
后悔当初 2020-12-15 15:07

I am developing an iPhone App. In that, there is a requirement for Pausing and resuming the camera. So i used AVFoundation for that instead of using UIIma

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-15 15:25

    You can't change the captureDevice mid-session. And you can only have one capture session running at a time. You could end the current session and create a new one. There will be a slight lag (maybe a second or two depending on your cpu load).

    I wish Apple would allow multiple sessions or at least multiple devices per session... but they do not... yet.

提交回复
热议问题