Table of Contents

Class BlockPipelineContext

Namespace
VisioForge.Core.MediaBlocks
Assembly
VisioForge.Core.dll

Shared context object that contains pipeline-wide resources, state, and configuration for MediaBlocks operations. This context is passed to all blocks in a pipeline to provide access to the underlying GStreamer pipeline, event handling, timing information, and cross-block communication. It serves as the central coordination point for pipeline lifecycle management and resource sharing.

public class BlockPipelineContext

Inheritance

Inherited Members

Fields

IsClosed

Flag indicating whether the pipeline context has been closed and is no longer active. Used to prevent operations on disposed or terminated pipeline contexts.

public bool IsClosed

Field Value

bool

MainThread

Reference to the main application thread for ensuring thread-safe operations and UI updates. Used for marshaling callbacks and events back to the appropriate thread context.

public Thread MainThread

Field Value

Thread

Pipeline

The main GStreamer pipeline object that orchestrates all media processing operations. This is the core pipeline instance that contains all GStreamer elements and manages data flow.

public Pipeline Pipeline

Field Value

Pipeline

PipelineGES

The GStreamer Editing Services (GES) pipeline used for non-linear video editing operations. This is only populated when the pipeline is used for video editing scenarios with timeline-based editing.

public Pipeline PipelineGES

Field Value

Pipeline

Rate

The playback rate for the pipeline (1.0 = normal speed, 2.0 = double speed, 0.5 = half speed). This affects the speed of media processing and playback across all blocks in the pipeline.

public double Rate

Field Value

double

Reference to the parent SDK object that owns this pipeline context. Provides access to higher-level SDK functionality and settings from within the pipeline.

public object SDKLink

Field Value

object

OnStop

Event raised when the pipeline stops execution, either normally or due to an error. Provides information about the reason for stopping and allows for cleanup operations.

public event EventHandler<StopEventArgs> OnStop

Event Type

EventHandler<StopEventArgs>