Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 无法在c中的客户端计算机上运行我的视频项目?_C#_Directx - Fatal编程技术网

C# 无法在c中的客户端计算机上运行我的视频项目?

C# 无法在c中的客户端计算机上运行我的视频项目?,c#,directx,C#,Directx,我用c语言制作了一个窗口应用程序,它可以一次播放多个视频。。。我在2010年6月使用了DirectX SDK。。。它在我的机器上运行良好,但在客户机上出现异常。。。这台机器安装了DirectX11,所以没有问题。。。我得到的例外是 ************** Exception Text ************** Error in the application. -2147220891 (VFW_E_UNSUPPORTED_STREAM) at Microsoft.DirectX.Aud

我用c语言制作了一个窗口应用程序,它可以一次播放多个视频。。。我在2010年6月使用了DirectX SDK。。。它在我的机器上运行良好,但在客户机上出现异常。。。这台机器安装了DirectX11,所以没有问题。。。我得到的例外是

************** Exception Text **************
Error in the application.
-2147220891 (VFW_E_UNSUPPORTED_STREAM)
at Microsoft.DirectX.AudioVideoPlayback.Video.Open(String fileName, Boolean autoRun)
at Microsoft.DirectX.AudioVideoPlayback.Video..ctor(String fileName)
at Video_Project.FormMain.FormMain_Load(Object sender, EventArgs e) in   D:\Video_Project\Video_Project\Form1.cs:line 240
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

请任何人在这方面帮助我……请让我一整天都在这里面检查机器安装的wmp编解码器: 转到WMP,按alt键获取菜单,选择帮助->关于。。。然后单击技术支持信息。它将生成一份报告,其中列出所有受支持的音频和视频编解码器


在两台机器上都执行此操作,希望这会显示缺少的编解码器。

客户端缺少编解码器?那么我的客户端具体需要什么?这取决于视频文件中的流编码方式。尝试在Media Player中打开文件,看看它告诉您什么。我应该在代码中做些什么吗?媒体文件正在客户端计算机的普通媒体播放器中打开..很有趣。看来你不是唯一一个。