Table of Contents

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, IDisposable, IMediaBlockInternals

Inheritance

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

settings StaticTextFallbackSettings

The text fallback settings.

Properties

Input

Gets the input pad (always null for source blocks).

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Output

Gets the output pad.

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets the collection of output pads for this media block.

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Type

Gets the media block type.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

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

disposing bool

GetCore()

Gets the core wrapper. Always null for this composite source.

public BaseElement GetCore()

Returns

BaseElement

null.

GetElement()

Gets the main GStreamer element.

public Element GetElement()

Returns

Element

IMediaBlockInternals.CleanUp()

Releases the elements created by VisioForge.Core.MediaBlocks.Sources.TextOverlaySourceBlock.Build, so the block can be built again.

void IMediaBlockInternals.CleanUp()

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the pipeline context.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The pipeline.