• 大小: 1.11M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 摄像头  C#  

资源简介

在开发类似语音视频聊天或视频会议这样的系统时,它们通常都包含一个测试音视频设备的功能 -- 通过该测试,用户可以选择要使用的音视频设备(对于程序内部而言,就是确定要使用设备的Index),就像QQ的语音测试向导和视频设置。这里,我介绍一下如何使用OMCS来实现类似的功能,只需少量代码即可搞定。先上测试程序运行起来后的截图:

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using OMCS.Tools;
using OMCS.Server;
using OMCS.Passive;
using ESBasic;

namespace OMCS.DeviceTester
{
    public partial class Form1 : Form
    {
        private MultimediaServer multimediaServer;
        private IMultimediaManager multimediaManager = MultimediaManagerFactory.GetSingleton();
       

        public Form1()
        {
            InitializeComponent();

            //初始化OMCS服务器
            OMCSConfiguration configuration = new OMCSConfiguration(10 1 EncodingQuality.High 16000 800 600);
            this.multimediaServer = new MultimediaServer(9000 new DefaultUserVerifier() configu

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      94208  2012-09-27 17:46  OMCS.DeviceTester\OMCS.DeviceTester\bin\Debug\AudioEngineCore.dll

     文件     385024  2013-08-12 16:08  OMCS.DeviceTester\OMCS.DeviceTester\bin\Debug\ESBasic.dll

     文件      28672  2013-08-19 11:46  OMCS.DeviceTester\OMCS.DeviceTester\bin\Debug\OMCS.DeviceTester.exe

     文件      24064  2013-08-19 11:46  OMCS.DeviceTester\OMCS.DeviceTester\bin\Debug\OMCS.DeviceTester.pdb

     文件       5632  2005-11-11 22:25  OMCS.DeviceTester\OMCS.DeviceTester\bin\Debug\OMCS.DeviceTester.vshost.exe

     文件     764928  2013-08-12 16:15  OMCS.DeviceTester\OMCS.DeviceTester\bin\Debug\OMCS.dll

     文件     172544  2013-03-29 16:55  OMCS.DeviceTester\OMCS.DeviceTester\bin\Debug\Paintframework.dll

     文件     184320  2013-06-21 20:37  OMCS.DeviceTester\OMCS.DeviceTester\bin\Debug\VideoEngine.dll

     文件     645632  2011-07-01 14:57  OMCS.DeviceTester\OMCS.DeviceTester\bin\Debug\VideoEngineCore.dll

     文件       6881  2013-08-19 11:33  OMCS.DeviceTester\OMCS.DeviceTester\Form1.cs

     文件      11910  2013-08-19 11:33  OMCS.DeviceTester\OMCS.DeviceTester\Form1.Designer.cs

     文件       9685  2013-08-19 11:33  OMCS.DeviceTester\OMCS.DeviceTester\Form1.resx

     文件        842  2013-08-19 11:46  OMCS.DeviceTester\OMCS.DeviceTester\obj\Debug\OMCS.DeviceTester.csproj.GenerateResource.Cache

     文件      28672  2013-08-19 11:46  OMCS.DeviceTester\OMCS.DeviceTester\obj\Debug\OMCS.DeviceTester.exe

     文件       2804  2013-08-19 11:46  OMCS.DeviceTester\OMCS.DeviceTester\obj\Debug\OMCS.DeviceTester.Form1.resources

     文件      24064  2013-08-19 11:46  OMCS.DeviceTester\OMCS.DeviceTester\obj\Debug\OMCS.DeviceTester.pdb

     文件        180  2013-08-19 11:46  OMCS.DeviceTester\OMCS.DeviceTester\obj\Debug\OMCS.DeviceTester.Properties.Resources.resources

     文件       1104  2013-08-19 11:49  OMCS.DeviceTester\OMCS.DeviceTester\obj\OMCS.DeviceTester.csproj.FileListAbsolute.txt

     文件       3773  2013-08-19 11:46  OMCS.DeviceTester\OMCS.DeviceTester\OMCS.DeviceTester.csproj

     文件        476  2013-08-19 11:24  OMCS.DeviceTester\OMCS.DeviceTester\Program.cs

     文件       1200  2013-08-19 11:24  OMCS.DeviceTester\OMCS.DeviceTester\Properties\AssemblyInfo.cs

     文件       2890  2013-08-19 11:24  OMCS.DeviceTester\OMCS.DeviceTester\Properties\Resources.Designer.cs

     文件       5612  2013-08-19 11:24  OMCS.DeviceTester\OMCS.DeviceTester\Properties\Resources.resx

     文件       1102  2013-08-19 11:24  OMCS.DeviceTester\OMCS.DeviceTester\Properties\Settings.Designer.cs

     文件        249  2013-08-19 11:24  OMCS.DeviceTester\OMCS.DeviceTester\Properties\Settings.settings

     文件        940  2013-08-19 11:24  OMCS.DeviceTester\OMCS.DeviceTester.sln

    ..A..H.     15360  2013-08-19 11:49  OMCS.DeviceTester\OMCS.DeviceTester.suo

     文件     385024  2013-08-12 16:08  OMCS.DeviceTester\Resource\ESBasic.dll

     文件     764928  2013-08-12 16:15  OMCS.DeviceTester\Resource\OMCS.dll

     目录          0  2013-08-19 11:24  OMCS.DeviceTester\OMCS.DeviceTester\obj\Debug\TempPE

............此处省略11个文件信息

评论

共有 条评论