How to set transcoding profile per stream via API

Hi~

Multiple incoming streams are received in an application.

I would like to set up a transcoding profile for each incoming stream.

Is there a way to change the template file in onInitBeforeLoadTemplate?

Is there any way to change settings more gracefully using functions such as setVideoBitrate?