Table of Contents

Class RTSPRAWSourceBlock

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

RTSP RAW source block for real-time streaming protocol reception without automatic decoding capabilities. Provides raw RTSP stream access from IP cameras, surveillance systems, and streaming servers with manual decoder control for advanced processing pipelines requiring custom codec handling in security, broadcasting, and professional video applications. This implementation ensures H264 streams start from keyframes and synchronizes audio playback accordingly. Implements the VisioForge.Core.MediaBlocks.Sources.SourceMediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.

public class RTSPRAWSourceBlock : SourceMediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

RTSPRAWSourceBlock(RTSPRAWSourceSettings)

Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.RTSPRAWSourceBlock class with custom RTSP settings. Configures the RTSP RAW source for real-time streaming with specified connection and protocol parameters.

public RTSPRAWSourceBlock(RTSPRAWSourceSettings settings)

Parameters

settings RTSPRAWSourceSettings

The RTSP RAW settings controlling URI, authentication, timeout, and stream configuration parameters.

Properties

AudioOutput

Gets the audio output pad that provides raw RTSP audio stream to downstream blocks.

public MediaBlockPad AudioOutput { get; }

Property Value

MediaBlockPad

Input

Gets the primary input pad (none for source blocks that receive network streams).

public override MediaBlockPad Input { get; }

Property Value

MediaBlockPad

Inputs

Gets all input pads available on this block (none for source blocks).

public override MediaBlockPad[] Inputs { get; }

Property Value

MediaBlockPad[]

Output

Gets the primary output pad (video output for RTSP stream).

public override MediaBlockPad Output { get; }

Property Value

MediaBlockPad

Outputs

Gets all output pads available on this block (video and audio outputs for RTSP).

public override MediaBlockPad[] Outputs { get; }

Property Value

MediaBlockPad[]

Settings

Gets or sets the RTSP RAW configuration settings that control connection parameters and stream processing options.

public RTSPRAWSourceSettings Settings { get; set; }

Property Value

RTSPRAWSourceSettings

Type

Gets the media block type identifier for RTSP RAW source operations.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

VideoOutput

Gets the video output pad that provides raw RTSP video stream to downstream blocks.

public MediaBlockPad VideoOutput { get; }

Property Value

MediaBlockPad

Methods

Build()

Builds and initializes the RTSP RAW source within the pipeline context. Establishes RTSP connection, configures stream reception, and prepares raw video/audio outputs for downstream processing.

public override bool Build()

Returns

bool

true if the RTSP RAW source was successfully built and configured; otherwise, false.

CleanUp()

Cleans up all resources associated with the RTSP RAW operations, including network connection and stream buffers.

public void CleanUp()

Dispose(bool)

Releases unmanaged and managed resources used by the RTSP RAW source. Properly closes RTSP connection and disposes of GStreamer elements and streaming resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

GetCore()

Gets the core GStreamer element wrapper for advanced configuration and monitoring.

public BaseElement GetCore()

Returns

BaseElement

The RTSPRAWSource wrapper element for advanced RTSP configuration options.

GetElement()

Gets the native GStreamer element for direct GStreamer pipeline integration.

public Element GetElement()

Returns

Element

The RTSP RAW source GStreamer element.

IsAvailable()

Determines whether RTSP RAW support is available on the current system. Requires GStreamer RTSP source plugins and network connectivity to be available and functional.

public static bool IsAvailable()

Returns

bool

true if RTSP RAW support is available; otherwise, false.

IMediaBlockInternals.SetContext(MediaBlocksPipeline)

Sets the pipeline context for this RTSP RAW source, providing access to the parent pipeline and logging context.

void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)

Parameters

pipeline MediaBlocksPipeline

The parent MediaBlocks pipeline containing this RTSP RAW source.

See Also