Class OverlayManagerNDIVideo
- Namespace
- VisioForge.Core.Types.X.VideoEffects
- Assembly
- VisioForge.Core.dll
NDI video overlay element that captures video from NDI sources in the overlay manager.
public class OverlayManagerNDIVideo : IOverlayManagerElement, IDisposableInheritance
Implements
Inherited Members
Constructors
OverlayManagerNDIVideo(NDISourceSettings, int, int, int, int)
Initializes a new instance of the VisioForge.Core.Types.X.VideoEffects.OverlayManagerNDIVideo class.
public OverlayManagerNDIVideo(NDISourceSettings settings, int x, int y, int width, int height)Parameters
settingsNDISourceSettings-
The NDI video source settings.
xint-
The X position.
yint-
The Y position.
widthint-
The width.
heightint-
The height.
Properties
Cache
Gets or sets the cached image surface for rendering.
public object Cache { get; set; }Property Value
Enabled
Gets or sets whether the overlay is enabled.
public bool Enabled { get; set; }Property Value
EndTime
Gets or sets the end time for the overlay visibility.
public TimeSpan EndTime { get; set; }Property Value
Height
Gets or sets the height of the overlay.
public int Height { get; set; }Property Value
Lock
Gets the lock object for thread synchronization.
public object Lock { get; }Property Value
NDISettings
Gets or sets the NDI video source settings.
public NDISourceSettings NDISettings { get; set; }Property Value
Name
Gets or sets the name of the element.
public string Name { get; set; }Property Value
Opacity
Gets or sets the opacity of the overlay (0.0 to 1.0).
public double Opacity { get; set; }Property Value
Rotation
Gets or sets the rotation angle in degrees.
public double Rotation { get; set; }Property Value
Shadow
Gets or sets the shadow settings for the overlay.
public OverlayManagerShadowSettings Shadow { get; set; }Property Value
StartTime
Gets or sets the start time for the overlay visibility.
public TimeSpan StartTime { get; set; }Property Value
StretchMode
Gets or sets the stretch mode for the video.
public OverlayManagerImageStretchMode StretchMode { get; set; }Property Value
VideoRendererSettings
Gets or sets the video renderer settings. Used when VideoView is provided.
public VideoRendererSettingsX VideoRendererSettings { get; set; }Property Value
VideoView
Gets or sets the video view for optional video rendering. If provided, the video will be rendered to this view in addition to being available as an overlay.
public IVideoView VideoView { get; set; }Property Value
Width
Gets or sets the width of the overlay.
public int Width { get; set; }Property Value
X
Gets or sets the X position of the overlay.
public int X { get; set; }Property Value
Y
Gets or sets the Y position of the overlay.
public int Y { get; set; }Property Value
ZIndex
Gets or sets the Z-index for layering.
public int ZIndex { get; set; }Property Value
Methods
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)Parameters
disposingbool-
trueto release both managed and unmanaged resources;falseto release only unmanaged resources.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()Initialize(bool)
Initializes the NDI video overlay and starts capture.
public bool Initialize(bool autoStart = true)Parameters
autoStartbool-
If true, starts playing immediately. If false, only preloads.
Returns
- bool
-
trueif successful; otherwise,false.
Pause()
Pauses video capture.
public void Pause()Play()
Starts or resumes video capture.
public void Play()Stop()
Stops video capture.
public void Stop()