Class PreEventSeparateOutputBlock
- Namespace
- VisioForge.Core.MediaBlocks.Sinks
- Assembly
- VisioForge.Core.dll
Separate output block that routes encoded video/audio from bridge sources through encoders into a VisioForge.Core.MediaBlocks.Sinks.PreEventRecordingBlock instead of a muxer+filesink.
public class PreEventSeparateOutputBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternalsInheritance
Implements
Inherited Members
Extension Methods
Constructors
PreEventSeparateOutputBlock(MediaBlocksPipeline, SeparateOutput, BridgeVideoSourceSettings, BridgeAudioSourceSettings, PreEventRecordingBlock)
Initializes a new instance of the VisioForge.Core.MediaBlocks.Sinks.PreEventSeparateOutputBlock class. Wires bridge sources through optional processors and encoders into the pre-event recording block.
public PreEventSeparateOutputBlock(MediaBlocksPipeline pipeline, SeparateOutput settings, BridgeVideoSourceSettings bridgeVideoSourceSettings, BridgeAudioSourceSettings bridgeAudioSourceSettings, PreEventRecordingBlock preEventBlock)Parameters
pipelineMediaBlocksPipeline-
The parent MediaBlocks pipeline.
settingsSeparateOutput-
The separate output configuration with encoders and processors.
bridgeVideoSourceSettingsBridgeVideoSourceSettings-
Bridge video source settings.
bridgeAudioSourceSettingsBridgeAudioSourceSettings-
Bridge audio source settings.
preEventBlockPreEventRecordingBlock-
The pre-event recording block to route encoded output into.
Properties
Input
Gets the primary input pad (none for separate output blocks that use bridge sources).
public override MediaBlockPad Input { get; }Property Value
Inputs
Gets all input pads (none for separate output blocks).
public override MediaBlockPad[] Inputs { get; }Property Value
Output
Gets the primary output pad (none - this is a sink).
public override MediaBlockPad Output { get; }Property Value
Outputs
Gets all output pads (none - this is a sink).
public override MediaBlockPad[] Outputs { get; }Property Value
Type
Gets the media block type identifier.
public override MediaBlockType Type { get; }Property Value
Methods
Build()
Builds and initializes the block within the pipeline context.
public override bool Build()Returns
- bool
-
trueif built successfully; otherwise,false.
CleanUp()
Cleans up bridge sources.
public void CleanUp()Dispose(bool)
Releases resources.
protected override void Dispose(bool disposing)Parameters
disposingbool
GetCore()
Gets the core element.
public BaseElement GetCore()Returns
- BaseElement
GetElement()
Gets the GStreamer element.
public Element GetElement()Returns
- Element
GetFilenameOrURL()
Gets the current output filename.
public string GetFilenameOrURL()Returns
SetFilenameOrURL(string)
Updates the output filename (not used for pre-event recording; filename is set on trigger).
public void SetFilenameOrURL(string filename)Parameters
filenamestring
IMediaBlockInternals.SetContext(MediaBlocksPipeline)
Sets the pipeline context.
void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)Parameters
pipelineMediaBlocksPipeline