8

I'm trying to create a UIView that allows a user to tap a button in i and record the screen (not make a video from the camera), then save it to the document folder. I've seen a couple of SO articles here that talk about AVAssetWriter and make references to this link: http://codethink.no-ip.org/wordpress/archives/673 , but that link appears to be dead.

But no one has actually shown a solution or provided any examples on how to accomplish. Anyone have any ideas or can point me in the right direction? This should be simpler than it is.

Thanks, Doug

Doug
  • 169
  • 1
  • 2
  • 12
  • 1
    Although I have not fully found a solution, I did found a GREAT reference with sourcecode here: http://www.slideshare.net/invalidname/advanced-media-manipulation-with-av-foundation and the sourcecode example: http://www.subfurther.com/blog/category/avfoundation/ in the file: ATMScreenRecorderTest.zip – Doug Jul 05 '12 at 02:11
  • Any Solution on screen video recording along with user Audio? – PGU Nov 28 '12 at 05:27
  • @Doug, did you manage to get an answer for this? – TenG Apr 15 '15 at 19:20

3 Answers3

5

The link is not dead.

http://codethink.no-ip.org/wordpress/archives/673

If you check the comments, there is also some code that will mix audio & video and save it as a quicktime movie.

If you still can't access the link, there is a guy selling the same code on binpress:

http://www.binpress.com/app/ios-screen-capture-view/1038

noodl_es
  • 1,467
  • 1
  • 17
  • 28
  • 1
    Well it's dead again. This is why link-only answers are bad. – OrangeDog Dec 18 '14 at 10:49
  • @OrangeDog - the link is working fine for me! That page contains a LOT of code and some explanations - too much for a StackOverflow answer. I could copy the code into GitHub or a Gist but then it would still be a 'link-only' answer. – noodl_es Dec 30 '14 at 06:35
  • Hi @noodl_es since this is a dated answer would this still be the best way record video of a UIView (not full screen)? Thanks for your time! Question: http://stackoverflow.com/questions/34956713/simplified-screen-capture-record-video-of-only-what-appears-within-the-layers-o – Crashalot Jan 22 '16 at 22:10
3

Another useful project for this is RecordMyScreen, found here: https://github.com/coolstar/RecordMyScreen

Tim Arnold
  • 8,359
  • 8
  • 44
  • 67
  • 1
    Yeah, I've been following that project for awhile and that team did a FANTASTIC job of building it and working thru the issues. – Doug May 17 '13 at 15:23
  • @Doug and Tim do you guys know if this project can record video? – iqueqiorio Apr 09 '15 at 20:56
  • Hi Tim since this is a dated answer is this still the best way to do screen capture? Specifically, we need to capture the contents from a UIView, not the whole screen. Question: http://stackoverflow.com/questions/34956713/simplified-screen-capture-record-video-of-only-what-appears-within-the-layers-o. Thanks for your time! – Crashalot Jan 22 '16 at 22:18
  • @Crashalot I'm not sure about for just one view, but now plugging your device in to your Mac with its Lightning / USB cable, opening Quicktime, and choosing a screen recording, and then recording video that way, is the easiest way to record your screen. – Tim Arnold Jan 23 '16 at 20:49
0

Another way to approach it is using a feedback library such as BlitFeedback, which includes effortless screen video-capturing.