I'm trying to place some text of a part of a video that I'm creating. I realize that I can use a layer with text over an entire length of the video using CALayers, but how do I do it over only part of the video? After some research I have found that you can create a AVMutableCompositionTrack of type AVMediaTypeText, and it seems like that might do the trick; however, I cannot find any examples of how to declare, instantiate, etc of such a track?
I'm declaring it as such :
AVMutableCompositionTrack *textTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeText preferredTrackID:kCMPersistentTrackID_Invalid];
now how do I actually add text to it or instantiate with it with a string?
any input appreciated.