addOutput

suspend fun addOutput(output: Surface)

Adds an output to the current capture session.

If the output is not in the current capture session, the capture session is recreated with the new output.