Exemple #1
0
 public InputNode(NodeName name, Action inputOpened, IStreamerBase streamer)
 {
     _name             = name;
     _statisticKeeper  = new StatisticKeeper <StatisticDataOfInputOutput>(name);
     _inputOpened      = inputOpened;
     _streamer         = streamer;
     _inputThread      = new Thread(() => OnInputThread());
     _inputThread.Name = $"Streamer:{name} input thread";
     _observer         = streamer.Subscribe(1000, On1Second);
 }
Exemple #2
0
 public OutputNode(NodeName name, IStreamerBase streamer, OutputStreamQueue <Packet> inputQueue)
 {
     Name             = name;
     Streamer         = streamer;
     InputQueue       = inputQueue;
     _statisticKeeper = new StatisticKeeper <StatisticDataOfInputOutput>(name);
     _thread          = new Thread(() => OnThread());
     _thread.Name     = $"Streamer:Output for {name}";
     _reader          = InputQueue.CreateReader();
 }
Exemple #3
0
 public VideoBlenderNode(NodeName name, IStreamerBase streamer, OverloadController overloadController) : base(name, streamer)
 {
     _statisticKeeper2   = new StatisticKeeper <StatisticDataOfBlenderNode>(name);
     _overloadController = overloadController;
 }