attachVideo

suspend fun attachVideo(track: Int, video: VideoSource?): Result<Unit>

Replaces the video source on a track, closing the previous source first.

If the mixer is running, the new source is opened and attached to the screen immediately. Otherwise, it is opened when startRunning is called.

Return

The result of opening the source, or success when opening is deferred or the source is detached.

Parameters

track

The video track identifier, matched by VideoScreenObject.track.

video

The source to attach, or null to detach the current source.