Closed pennywise94 closed 3 years ago
@Silence-GitHub any idea how I could accomplish the behavior I want, within one and the same metalView? So I can record a video and play back almost immediately in the same metalView?
For question 1: The first time start recording, some frames freeze. The next time works well. It seems only the first time start recording (after launching the app) has the problem. And it seems this happens only when launching the app by Xcode. If I disconnect iPhone from Xcode, and launch the app by touching iPhone, it works well. If the problem happens only when launching the app by Xcode, you can ignore it. But I am not sure since I don't have more device to test.
For question 2: You can ignore the log. There is the same log in the demo project. Finishing recording takes time. And during this time, some frames will be sent to the video writer which can not accept more frames.
I am trying to record a video by start pressing on a record button, and when releasing I want to play back the video I just recorded in the same metalView. Below is my code, but I am facing a few hiccups:
Any ideas on how to improve this code and how I can achieve the result I want? Don't mind the AudioPlayer stuff. I also want to play the audio of the video I just recorded.