Set closed captions language programatically?

How is it possible to programmatically set the closed captions language?
I already use the variable apCCVisible and the command prez.showClosedCaption(bool).
That’s all well and good!
But for users it is still very complicated to select the language in the extra menu for closed captions.
I would like to add flags as images to the start slide to set the corresponding closed caption language when clicking on them.

Thanks a lot!

Hi,

You can use prez.closedCaptionLanguageIndex(index) to achieve that.

Regards,

Works great, thank you!