Table of Contents

Interface IBaseSourceX

Namespace
VisioForge.Core.Types.X
Assembly
VisioForge.Core.dll

Defines a base interface for media sources within the VisioForge X engine. This interface serves as a marker for all source elements in the MediaBlocks framework.

public interface IBaseSourceX

Examples

// Conceptual example of a file source implementing IBaseSourceX.
public class MyFileSource : IBaseSourceX, IMediaFileSource
{
    public string FilePath { get; set; }

    public void OpenFile(string path)
    {
        FilePath = path;
        // Logic to open the file and prepare for data delivery.
    }

    // Other IMediaFileSource methods...
}

// Usage:
// IBaseSourceX source = new MyFileSource();
// if (source is IMediaFileSource fileSource)
// {
//     fileSource.OpenFile("C:\video.mp4");
// }

Remarks

Implementations of this interface are responsible for providing media data (video, audio, etc.) to the processing pipeline. Specific source types (e.g., file sources, camera sources, network sources) will implement this interface along with more specialized interfaces.