ruanjx / VideoLab

High-performance and flexible video editing and effects framework, based on AVFoundation and Metal.
MIT License
837 stars 174 forks source link

How to use for adding captions? i.e multiple text layers on same composition #17

Open royherma opened 2 years ago

royherma commented 2 years ago

Hey, love this library!

How would you go about adding multiple text layers (for example captions) to the composition?

The composition can only take a single animationLayer value, so no place to add an array.

My thoughts are to create a base CALayer, then add all of the subsequent text animation layers to that layer, adjust their animation (from and duration values), and then just assign that base layer to composition.

It hasn't worked for me yet, but is that the right approach at all?

Thanks!

dervisyilm commented 1 year ago

did you find any solution?