replaceOutput

suspend fun replaceOutput(previousOutput: Surface, newOutput: Surface)

Replaces an output in the current capture session.

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