/// <summary> /// Adds a buffer of encrypted video data to the output pool, essentially sending /// it to all connected clients. /// </summary> /// <param name="buffer">A buffer of encrypted video data</param> public void AddVideoBuffer(byte[] buffer) { if (buffer.Length <= 0) { return; } VideoUpdatePacket packet = new VideoUpdatePacket(buffer.Length); outputBuffers.Add(packet.Buffer, buffer); }
protected void readVideoUpdate(VideoUpdatePacket packet) { byte[] buffer = new byte[packet.VideoDataLength]; readBuffer(buffer); if (decoder != null) { decoder.Decode(buffer); } }