C#实现视频会议系统


主要核心功能是:多人语音、多人视频、公共电子白板、会议房间管理。
资源截图
代码片段和文件信息
using ESPlus.Advanced;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using ESBasic;
using ESBasic.Loggers;

namespace ESframework.Boost
{
    public class DignosticLogger : IDisposable
    {
        private IDiagnosticsViewer diagnosticsViewer;
        private IAgileLogger agileLogger;
        private int spanInSecs = 30;
        private volatile bool stop = false;

        public DignosticLogger(IDiagnosticsViewer viewer string logFilePath int logSpanInSecs)
        {
            this.diagnosticsViewer = viewer;
            this.agileLogger = new FileAgileLogger(logFilePath);
            this.spanInSecs = logSpanInSecs;

            if (this.diagnosticsViewer != null)
            {
                CbGeneric cb = new CbGeneric(this.LogThread);
                cb.BeginInvoke(null null);
            }
        }

        private void LogThread()
        {
            int span = this.spanInSecs * 1000;
            while (!this.stop)
            {
                System.Threading.Thread.Sleep(span);
                this.Log();
            }
        }


        private void Log()
        {
            try
            {
                List stats = this.diagnosticsViewer.GetCustomizeInfoStatistics();
                ThreadPoolInfo tpi = this.diagnosticsViewer.GetThreadPoolInfo();
                List uncommittedInfos = this.diagnosticsViewer.GetUncommittedCustomizeInfos();                
                this.agileLogger.LogWithTime(string.Format(“线程情况:WorkThreadCount={0}/{1} IocpThreadCount={2}/{3}“ tpi.AvailableWorkThreadCount tpi.MaxWorkThreadCount tpi.AvailableIocpThreadCount tpi.MaxIocpThreadCount));

                if (stats.Count > 0)
                {
                    this.agileLogger.LogWithTime(“历史记录:“);
                    foreach (InfoHandleRecordStatistics stat in stats)
                    {
                        this.agileLogger.LogWithTime(string.Format(“InformationType={0} Informationstyle={1} CallCount={2} ExceptionCount={3}“ stat.InformationType stat.Informationstyle stat.CallCount stat.ExceptionCount));
                        foreach (InfoHandleRecord rcd in stat.LastRecords)
                        {
                            this.agileLogger.LogWithTime(string.Format(“    ID={0} StartTime={1} TimeSpent={2}“ rcd.ID rcd.StartTime rcd.TimeSpent));
                        }
                    }
                }

                if (uncommittedInfos.Count > 0)
                {               
                    this.agileLogger.LogWithTime(“正在处理中的消息:“);
                    foreach (InfoHandleRecord record in uncommittedInfos)
                    {
                        this.agileLogger.LogWithTime(string.Format(“ID={0} InformationType={1} Infostyle={2} StartTime={3}“ record.ID record.InformationType record.Informationstyle record.StartTime));
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-05-12 15:34  GGMeeting
     目录           0  2015-04-29 16:44  GGMeetingDlls
     文件       88064  2015-02-04 11:45  GGMeetingDllsAudioEngineCore.dll
     文件      121344  2012-04-20 08:43  GGMeetingDllsdxbase.dll
     文件      397824  2015-03-23 10:20  GGMeetingDllsESBasic.dll
     文件      200798  2015-03-23 10:20  GGMeetingDllsESBasic.xml
     文件     1081344  2015-05-09 09:17  GGMeetingDllsESframework.dll
     文件      322827  2015-03-23 15:49  GGMeetingDllsESframework.xml
     文件     1683968  2015-04-24 14:25  GGMeetingDllsOMCS.dll
     文件      672177  2015-04-25 08:48  GGMeetingDllsOMCS.xml
     文件      385024  2015-03-23 10:23  GGMeetingDllsPaintframework.dll
     文件      659456  2014-10-13 14:02  GGMeetingDllsVideoEngineCore.dll
     目录           0  2015-05-11 11:39  GGMeetingESframework.Boost
     目录           0  2015-05-11 11:39  GGMeetingESframework.Boostin
     目录           0  2015-05-11 16:21  GGMeetingESframework.BoostinDebug
     文件     1005056  2014-12-22 10:21  GGMeetingESframework.BoostinDebugCSkin.dll
     文件      397824  2015-03-23 10:20  GGMeetingESframework.BoostinDebugESBasic.dll
     文件      200798  2015-03-23 10:20  GGMeetingESframework.BoostinDebugESBasic.xml
     文件      391168  2015-05-11 16:21  GGMeetingESframework.BoostinDebugESframework.Boost.dll
     文件      536064  2015-05-11 16:21  GGMeetingESframework.BoostinDebugESframework.Boost.pdb
     文件     1081344  2015-05-09 09:17  GGMeetingESframework.BoostinDebugESframework.dll
     文件      322827  2015-03-23 15:49  GGMeetingESframework.BoostinDebugESframework.xml
     目录           0  2015-04-08 11:30  GGMeetingESframework.BoostinRelease
     目录           0  2015-05-11 11:39  GGMeetingESframework.BoostControls
     文件        8786  2015-04-08 11:33  GGMeetingESframework.BoostControlsAutoDocker.cs
     文件         927  2015-04-08 11:33  GGMeetingESframework.BoostControlsAutoDocker.Designer.cs
     目录           0  2015-05-11 11:39  GGMeetingESframework.BoostControlsChatBox
     文件       35468  2015-04-08 11:49  GGMeetingESframework.BoostControlsChatBoxChatBox.cs
     文件        7021  2015-04-08 11:48  GGMeetingESframework.BoostControlsChatBoxChatBox.resx
     文件        6114  2015-04-08 11:49  GGMeetingESframework.BoostControlsChatBoxGifBox.cs
     文件        5998  2015-04-08 11:48  GGMeetingESframework.BoostControlsChatBoxGifBox.resx
............此处省略618个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)