To answer your question: I am instantiating AVMutableCaption, modifying it and then supplying it to the AVCaptionRenderer. I am just using a playground right now, so each run is a new caption and renderer. The caption is not modified or used after renderer.
I was able to get backgroundColor and fontStyle to work.
AVCaptionRenderer - Modifying the render bounds has very unexpected results. I expect that the text is rendered in the supplied bounds. Instead the text seems to always be rendered at (0,0).
AVMutableCaption.setFontWeight has no effect.
AVMutableCaption.setDecoration(.lineThrough, ...) has no effect.
AVMutableCaption.textAlignment has no effect.
Changing the AVMutableCaption.region causes the text to not render at all.
I can supply some playgrounds that demonstrate these problems if you like.
AVCaptionRenderer is probably the most sparsely documented API I have ever seen. I can't imagine that it is actually being used by anybody in it's current state.
Topic:
Media Technologies
SubTopic:
Audio
Tags: