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.
I just found this framework, called ARVideoKit, and it seems to be easy to implement plus they have more features such as capturing GIFs and Live Photos.
The framework official repo is: https://github.com/AFathi/ARVideoKit/
To install it, you'd have to clone the repo and drag the .framework file into your project's embedded binary.
Then the implementation is pretty simple:
import ARVideoKit
in your UIViewController
class
Create a RecordAR?
variable
var videoRec:RecordAR?
Initialize your variable in viewDidLoad
videoRec = RecordAR(ARSpriteKit:sceneView)
Prepare RecordAR
in viewWillAppear
videoRec.prepare(configuration)
Begin recording a video
videoRec.record()
Stop and export to camera roll!
videoRec.stopAndExport()
Take a look at the framework's documentation, it supports more features to use!
You can find their documentation here: https://github.com/AFathi/ARVideoKit/wiki
Hope that helped!