Class TextOverlaySourceBlock
- Namespace
- VisioForge.Core.MediaBlocks.Sources
- Assembly
- VisioForge.Core.dll
Text overlay source block that generates video with text overlay for fallback scenarios. Implements the VisioForge.Core.MediaBlocks.Sources.SourceMediaBlock.
public class TextOverlaySourceBlock : SourceMediaBlock, IMediaBlock, IDisposableInheritance
Implements
Inherited Members
Extension Methods
Constructors
TextOverlaySourceBlock(StaticTextFallbackSettings)
Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.TextOverlaySourceBlock class.
public TextOverlaySourceBlock(StaticTextFallbackSettings settings)Parameters
settingsStaticTextFallbackSettings-
The text fallback settings.
Properties
Input
Gets the input pad (always null for source blocks).
public override MediaBlockPad Input { get; }Property Value
Output
Gets the output pad.
public override MediaBlockPad Output { get; }Property Value
Outputs
Gets the collection of output pads for this media block.
public override MediaBlockPad[] Outputs { get; }Property Value
Type
Gets the media block type.
public override MediaBlockType Type { get; }Property Value
Methods
Build()
Creates the text overlay source pipeline.
public override bool Build()Returns
- bool
-
True if creation succeeded; otherwise, false.
Dispose(bool)
Releases resources.
protected override void Dispose(bool disposing)Parameters
disposingbool
GetElement()
Gets the main GStreamer element.
public Element GetElement()Returns
- Element