Class HTTPSourceBlock
- Namespace
- VisioForge.Core.MediaBlocks.Sources
- Assembly
- VisioForge.Core.dll
HTTP/HTTPS source block for web-based content streaming and network media access. Provides versatile HTTP stream reception from web servers, CDNs, and online media sources with authentication support for live streaming, progressive download, and web-based multimedia content delivery in modern streaming applications. Implements the VisioForge.Core.MediaBlocks.Sources.SourceMediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.
public class HTTPSourceBlock : SourceMediaBlock, IMediaBlock, IDisposable, IMediaBlockInternalsInheritance
Implements
Inherited Members
Extension Methods
Constructors
HTTPSourceBlock(HTTPSourceSettings)
Initializes a new instance of the VisioForge.Core.MediaBlocks.Sources.HTTPSourceBlock class with custom network settings. Configures the HTTP source for web-based streaming with specified URL and connection parameters.
public HTTPSourceBlock(HTTPSourceSettings settings)Parameters
settingsHTTPSourceSettings-
The HTTP settings controlling URL, authentication, timeout, and network configuration parameters.
Properties
Input
Gets the primary input pad (none for source blocks that receive network streams).
public override MediaBlockPad Input { get; }Property Value
Inputs
Gets all input pads available on this block (none for source blocks).
public override MediaBlockPad[] Inputs { get; }Property Value
Output
Gets the primary output pad for the HTTP stream.
public override MediaBlockPad Output { get; }Property Value
Outputs
Gets all output pads available on this block (single output for HTTP stream).
public override MediaBlockPad[] Outputs { get; }Property Value
Settings
Gets or sets the HTTP configuration settings that control network parameters and stream processing options.
public HTTPSourceSettings Settings { get; set; }Property Value
Type
Gets the media block type identifier for HTTP source operations.
public override MediaBlockType Type { get; }Property Value
Methods
Build()
Builds and initializes the HTTP source within the pipeline context. Establishes network connection, configures stream reception, and prepares output for downstream processing.
public override bool Build()Returns
- bool
-
trueif the HTTP source was successfully built and configured; otherwise,false.
CleanUp()
Cleans up all resources associated with the HTTP operations, including network connection and stream buffers.
public void CleanUp()Dispose(bool)
Releases unmanaged and managed resources used by the HTTP source. Properly closes network connection and disposes of GStreamer elements and stream processing resources.
protected override void Dispose(bool disposing)Parameters
disposingbool-
trueto release both managed and unmanaged resources;falseto release only unmanaged resources.
GetCore()
Gets the core GStreamer element wrapper for advanced configuration and monitoring.
public BaseElement GetCore()Returns
- BaseElement
-
Always null for composite source blocks with multiple internal elements.
GetElement()
Gets the native GStreamer element for direct GStreamer pipeline integration.
public Element GetElement()Returns
- Element
-
The HTTP source GStreamer element.
IsAvailable()
Determines whether HTTP source support is available on the current system. Requires GStreamer HTTP source plugins and network connectivity to be available and functional.
public static bool IsAvailable()Returns
- bool
-
trueif HTTP source support is available; otherwise,false.
IMediaBlockInternals.SetContext(MediaBlocksPipeline)
Sets the pipeline context for this HTTP source, providing access to the parent pipeline and logging context.
void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)Parameters
pipelineMediaBlocksPipeline-
The parent MediaBlocks pipeline containing this HTTP source.