Table of Contents

Interface IMediaBlocksBridge

Namespace
VisioForge.Core.MediaBlocks.Bridge
Assembly
VisioForge.Core.dll

Interface for media blocks that support bridge functionality with dynamic channel updates. This interface is implemented by bridge source and sink blocks that use channel-based communication, allowing them to change their channel assignment at runtime without rebuilding the pipeline.

public interface IMediaBlocksBridge

Methods

UpdateChannel(string)

Updates the channel name for this bridge block dynamically. This allows changing the bridge connection without rebuilding the pipeline. For sink blocks, this changes where data is sent. For source blocks, this changes where data is received from. The channel must exist or be created by the corresponding sink/source pair.

bool UpdateChannel(string channel)

Parameters

channel string

The new channel name to use for bridging data.

Returns

bool

true if the channel was successfully updated; false if the update failed or the block doesn't support dynamic channel changes.