The way to add overlay when recording video in ios

Is there a way to add an overlay while recording a video so that when playing video from a camera roll I can see the overlay.

+5
source share
2 answers

Easy

create view:

UIView * tempView = [UIView alloc]initWithFrame... 

then ADD AS FITTING to your "Camera ViewController":

  • playerViewController
  • cameraViewController
  • (or any view you use)

eg:

 [self.playerViewController addSubView:tempView]; 

done √

0
source

If you want to add overlays to your recorded video, check out this Ray Wenderlich tutorial:

http://www.raywenderlich.com/30200/avfoundation-tutorial-adding-overlays-and-animations-to-videos

If you also want the overlay to appear while recording a video, you need to add the overlay as a subtitle to the UIImagePickerController cameraOverlayView . Take a look at this tutorial to see more: http://www.musicalgeometry.com/?p=821

-2
source

All Articles