set_node_buffer_config

Function set_node_buffer_config 

Source
pub fn set_node_buffer_config(config: NodeBufferConfig)
Expand description

Sets the global node buffer configuration.

This should be called once at server startup, before any nodes are created. Subsequent calls are ignored (the first configuration wins).

§Example

use streamkit_core::node_config::{set_node_buffer_config, NodeBufferConfig};

set_node_buffer_config(NodeBufferConfig {
    codec_channel_capacity: 64,  // Increased for high-throughput scenarios
    stream_channel_capacity: 16,
    demuxer_buffer_size: 128 * 1024,  // 128KB buffer
    moq_peer_channel_capacity: 200,
});