Class RISTMPEGTSSinkBlock
- Namespace
- VisioForge.Core.MediaBlocks.Sinks
- Assembly
- VisioForge.Core.dll
RIST MPEG-TS sink block. Multiplexes audio/video into MPEG-TS, payloads via RTP, and sends over RIST protocol. Implements the VisioForge.Core.MediaBlocks.MediaBlock Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals Implements the VisioForge.Core.MediaBlocks.IMediaBlockDynamicInputs Implements the VisioForge.Core.MediaBlocks.IMediaBlockSink
public class RISTMPEGTSSinkBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternals, IMediaBlockDynamicInputsInheritance
Implements
Inherited Members
Extension Methods
Constructors
RISTMPEGTSSinkBlock(RISTSinkSettings)
Initializes a new instance of the VisioForge.Core.MediaBlocks.Sinks.RISTMPEGTSSinkBlock class with the specified settings.
public RISTMPEGTSSinkBlock(RISTSinkSettings settings)Parameters
settingsRISTSinkSettings-
The RIST sink configuration settings that define connection and streaming parameters.
Exceptions
- ArgumentNullException
-
Thrown when
settingsisnull.
Properties
Input
Gets the first input.
public override MediaBlockPad Input { get; }Property Value
Inputs
Gets the inputs.
public override MediaBlockPad[] Inputs { get; }Property Value
Output
Gets the output.
public override MediaBlockPad Output { get; }Property Value
Outputs
Gets the outputs.
public override MediaBlockPad[] Outputs { get; }Property Value
Type
Gets the type.
public override MediaBlockType Type { get; }Property Value
Methods
Build()
Builds the RIST MPEG-TS sink block and configures input pads for streaming.
public override bool Build()Returns
- bool
-
trueif the block was successfully built; otherwise,false.
CleanUp()
Cleans up.
public void CleanUp()CreateNewInput(MediaBlockPadMediaType)
Creates a new input pad for the specified media type to support multi-stream MPEG-TS.
public MediaBlockPad CreateNewInput(MediaBlockPadMediaType mediaType)Parameters
mediaTypeMediaBlockPadMediaType-
The type of media stream (video, audio, or subtitle) for the new input.
Returns
- MediaBlockPad
-
A new VisioForge.Core.MediaBlocks.MediaBlockPad configured for the specified media type.
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected override void Dispose(bool disposing)Parameters
disposingbool-
trueto release both managed and unmanaged resources;falseto release only unmanaged resources.
GetCore()
Gets core.
public BaseElement GetCore()Returns
- BaseElement
-
VisioForge.Core.GStreamer.Base.BaseElement.
GetElement()
Gets the element.
public Element GetElement()Returns
- Element
-
Gst.Element.
GetFilenameOrURL()
Gets the RIST streaming URL.
public string GetFilenameOrURL()Returns
- string
-
The configured RIST URL as a string.
GetInput(MediaBlockPadMediaType)
Retrieves an existing input pad of the specified media type.
public MediaBlockPad GetInput(MediaBlockPadMediaType mediaType)Parameters
mediaTypeMediaBlockPadMediaType-
The media type to search for.
Returns
- MediaBlockPad
-
The first VisioForge.Core.MediaBlocks.MediaBlockPad matching the specified type, or
nullif none exists.
IsAvailable()
Determines whether the RIST MPEG-TS sink functionality is available in the current environment.
public static bool IsAvailable()Returns
- bool
-
trueif RIST streaming with MPEG-TS is supported; otherwise,false.
SetFilenameOrURL(string)
Sets the RIST streaming URL.
public void SetFilenameOrURL(string value)Parameters
valuestring-
The new RIST URL string.
IMediaBlockInternals.SetContext(MediaBlocksPipeline)
Sets the context.
void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)Parameters
pipelineMediaBlocksPipeline-
The pipeline.
See Also
-
IMediaBlockSink