Пример #1
0
        private void UpdateStatistic()
        {
            labelStatistic.BackColor = Color.OrangeRed;

            string srtOrPath, opttionsList;
            string fIn, bIn, fDrops, buff;

            m_objWriter.WriterGet(out srtOrPath, out opttionsList);

            int propsCount;

            m_objWriter.PropsGetCount("stat", out propsCount);
            StringBuilder propsBuilder = new StringBuilder();

            for (int propsIndex = 0; propsIndex < propsCount; propsIndex++)
            {
                string propsName;
                string propsValue;
                int    propsIsNode;
                m_objWriter.PropsGetByIndex("stat", propsIndex, out propsName, out propsValue, out propsIsNode);
                propsBuilder.AppendLine(propsName + " : " + propsValue);
            }

            string propsStatList = propsBuilder.ToString();

            m_objWriter.PropsGet("stat::frames_in", out fIn);
            m_objWriter.PropsGet("stat::breaks_in", out bIn);

            m_objWriter.PropsGet("stat::buffers_overflow", out fDrops);
            m_objWriter.PropsGet("stat::buffered", out buff);


            labelStatistic.Text = "Capturing file: " + srtOrPath + "\n\n" +
                                  "Frames In: " + fIn + "; " +
                                  "Break In: " + bIn + "; " +
                                  "Frame drops: " + fDrops + ";\n" +
                                  "Buffer: " + buff;

            checkWriter();
        }