How to record video from ARKit?

后端 未结 5 1485

Now I\'m testing ARKit/SceneKit implementation. The basic rendering to the screen is kinda working so then I wanna try recording what I see on the screen into a video.

5条回答
  •  一整个雨季
    2021-02-02 00:27

    ReplayKit is not a good solution because your users are presented with an ugly permission dialog, and you also have to work around it recording UI elements. You also have less control on your video resolution.

    Instead, you should use the captured frame CVPixelBuffer returned by ARKit, and handle it like you would if you were recording frames captured from the camera. Assuming you need to process your video frames, you may also need to use a framework like Metal to handle the drawing. It is not simple. See answer provided here: How to record video in RealityKit?

提交回复
热议问题