Please teach me how to insert text to video using AVFondation.framework. I want to combine current date and time with recording video.
I tried using CALayer, but I couldn't.
So please give me solution of this problem.
Thank you.
Kyohei Ota
Simply, you should make a Label. Clearly, using CALayer be implemented, but that maybe simply able not resolved.
First, you should to add a label to the moviePlayerView.
| |
| moviePlayerVew |
| |
| |
|[Your Label] |
I recommend following codes.
If the code below if you want to know more about, refer here.
and
Speaking briefly, player 10 times per second while running will generate block portion.
[yourPlayer addPeriodicTimeObserverForInterval:CMTimeMakeWithSeconds(0.1, NSEC_PER_SEC) queue:queue usingBlock:^(CMTime time)
{
yourLabel.text = @"your string".
}