VisioForge (c) 2025

Search Results for

    Class FileSourceBlock

    File source block. Implements the MediaBlock. Implements the IMediaBlockInternals. Implements the IDisposable.

    Inheritance
    Object
    MediaBlock
    FileSourceBlock
    Implements
    IMediaBlock
    IMediaBlockInternals
    IDisposable
    Inherited Members
    MediaBlock._isBuilt
    MediaBlock.GetPipelineContext()
    MediaBlock.Context
    MediaBlock.Name
    MediaBlock.GetInputPadByType(MediaBlockPadMediaType)
    MediaBlock.GetOutputPadByType(MediaBlockPadMediaType)
    MediaBlock.ToYAMLBlock()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: VisioForge.Core.MediaBlocks.Sources
    Assembly: VisioForge.Core.dll
    Syntax
    public class FileSourceBlock : MediaBlock, IMediaBlock, IMediaBlockInternals, IDisposable

    Constructors

    FileSourceBlock(String, Boolean, Boolean, Boolean)

    Initializes a new instance of the FileSourceBlock class.

    Declaration
    public FileSourceBlock(string filename = null, bool renderVideo = true, bool renderAudio = true, bool renderSubtitle = false)
    Parameters
    Type Name Description
    String filename

    The filename.

    Boolean renderVideo

    if set to true render video.

    Boolean renderAudio

    if set to true render audio.

    Boolean renderSubtitle

    if set to true render subtitle.

    Properties

    AudioOutput

    Gets the audio output.

    Declaration
    public MediaBlockPad AudioOutput { get; }
    Property Value
    Type Description
    MediaBlockPad

    The audio output.

    Filename

    Gets or sets the filename.

    Declaration
    public string Filename { get; set; }
    Property Value
    Type Description
    String

    The filename.

    Input

    Gets the input.

    Declaration
    public override MediaBlockPad Input { get; }
    Property Value
    Type Description
    MediaBlockPad

    The input.

    Overrides
    MediaBlock.Input

    Inputs

    Gets the inputs.

    Declaration
    public override MediaBlockPad[] Inputs { get; }
    Property Value
    Type Description
    MediaBlockPad[]

    The inputs.

    Overrides
    MediaBlock.Inputs

    Output

    Gets the output.

    Declaration
    public override MediaBlockPad Output { get; }
    Property Value
    Type Description
    MediaBlockPad

    The output.

    Overrides
    MediaBlock.Output

    Outputs

    Gets the outputs.

    Declaration
    public override MediaBlockPad[] Outputs { get; }
    Property Value
    Type Description
    MediaBlockPad[]

    The outputs.

    Overrides
    MediaBlock.Outputs

    SubtitleOutput

    Gets the subtitle output.

    Declaration
    public MediaBlockPad SubtitleOutput { get; }
    Property Value
    Type Description
    MediaBlockPad

    The subtitle output.

    Type

    Gets the type.

    Declaration
    public override MediaBlockType Type { get; }
    Property Value
    Type Description
    MediaBlockType

    The type.

    Overrides
    MediaBlock.Type

    VideoOutput

    Gets the video output.

    Declaration
    public MediaBlockPad VideoOutput { get; }
    Property Value
    Type Description
    MediaBlockPad

    The video output.

    Methods

    Build()

    Builds this instance.

    Declaration
    public override bool Build()
    Returns
    Type Description
    Boolean

    true if successfull, false otherwise.

    Overrides
    MediaBlock.Build()

    CleanUp()

    Cleans up.

    Declaration
    public void CleanUp()

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Releases unmanaged and - optionally - managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing

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

    Finalize()

    Finalizes an instance of the FileSourceBlock class.

    Declaration
    protected void Finalize()

    GetCore()

    Gets core.

    Declaration
    public BaseElement GetCore()
    Returns
    Type Description
    BaseElement

    VisioForge.Core.GStreamer.Base.BaseElement.

    GetElement()

    Gets the element.

    Declaration
    public Element GetElement()
    Returns
    Type Description
    Element

    Gst.Element.

    IsAvailable()

    Determines whether this media block is available. Correct NuGet SDK redist should be included into your project.

    Declaration
    public static bool IsAvailable()
    Returns
    Type Description
    Boolean

    true if this media block is available; otherwise, false.

    Explicit Interface Implementations

    IMediaBlockInternals.SetContext(MediaBlocksPipeline)

    Sets the context.

    Declaration
    void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)
    Parameters
    Type Name Description
    MediaBlocksPipeline pipeline

    The pipeline.

    Implements

    IMediaBlock
    IMediaBlockInternals
    IDisposable

    Extension Methods

    MediaBlockHelper.SetState(MediaBlock, State)
    MediaBlockHelper.SendEvent(MediaBlock, Event)
    MediaBlockHelper.SendEndOfStream(MediaBlock)

    See Also

    MediaBlock
    IMediaBlockInternals
    IDisposable