attachVideos

suspend fun attachVideos(videos: Map<Int, VideoSource?>): Result<Unit>

Replaces the specified tracks together. All new sources are opened before any is attached to a surface, as required for concurrent Camera2 capture. If replacement fails, the previous configuration is restored and its closed sources are reopened when running.