简体   繁体   中英

iOS Screen Capture / Recording

So in my app I am trying to "record" the screen using screenshots. It is imperative that I have these individual frames as images, as they are being modified and combined later on a server. Adding to this complexity, it is in a slow-paced game using Cocos2D. The way I am currently taking a screenshot is similar to how Apple recommends it in this link .

Unfortunately, taking these screenshots at 12-15 FPS causes a crash on anything above an iPad 2. Because the pixel density of newer devices is so high, storing them in a buffer at 12-15 FPS causes memory to spike, which kills the app. Are there any suggested ways of rapidly taking screenshots on iOS devices?

I have explored the option of halving the pixels on newer devices, but this still requires that I save all individual pixels in a buffer somewhere. Can any other screenshot methods work with OpenGL views to screenshot, so that I am able to scale it down?

There are some external frameworks and SKD's that can do that for you. I found https://www.kamcord.com/developers/ , but I'm sure there are more options. Hope it helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM