Class LVCVideoViewOutput
- Assembly
- VisioForge.Core.dll
Represents a video output component that renders directly to a video view for the Live Video Compositor. This specialized output class creates a video renderer block that displays the compositor's video output directly on a user interface video view control.
public class LVCVideoViewOutput : LVCVideoOutput, IDisposableInheritance
Implements
Inherited Members
Remarks
This class extends VisioForge.Core.LiveVideoCompositorV2.LVCVideoOutput to provide direct rendering capabilities to UI controls. It automatically creates a VisioForge.Core.MediaBlocks.VideoRendering.VideoRendererBlock as the main block, configured for asynchronous rendering to prevent UI blocking. This is particularly useful for preview windows or direct display scenarios where the video needs to be shown in the application's user interface.
Constructors
LVCVideoViewOutput(string, LiveVideoCompositor, IVideoView, bool, MediaBlock)
Initializes a new instance of the VisioForge.Core.LiveVideoCompositorV2.LVCVideoViewOutput class.
public LVCVideoViewOutput(string name, LiveVideoCompositor compositor, IVideoView videoView, bool autostart, MediaBlock processingVideoBlock = null)Parameters
namestring-
The unique name identifier for this output instance.
compositorLiveVideoCompositor-
The parent compositor that manages this output.
videoViewIVideoView-
The video view control where the video output will be rendered.
autostartbool-
If set to
true, the output will automatically start with the main pipeline; otherwise, manual start is required. processingVideoBlockMediaBlock-
An optional video processing block to apply effects or transformations to the video stream before rendering. Default is null.
Remarks
This constructor creates a VisioForge.Core.MediaBlocks.VideoRendering.VideoRendererBlock internally with asynchronous rendering enabled to ensure smooth playback without blocking the UI thread. The renderer is automatically connected to the provided video view control.