积极答复者
C# directshow能够支持rm格式的文件播放

问题
答案
-
- 已标记为答案 Cookie Luo 2011年4月18日 1:57
-
你好
我没有碰到你说的无法创建应用程序的错误。
我尝试着上面的解决方案,出现了Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))的错误。
然后我在Vs Command Prompt里面注册下这个Com组件。
RegSvr32 C:\Windows\SysWOW64\rmoc3260.dll
最后把项目的Platform Target从Any Cpu改成X86,一切oK了。不太清楚你为什么会碰到那个错误。你把你的步骤详细说下。
希望对你有帮助。
Cookie Luo[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Cookie Luo 2011年4月18日 1:57
全部回复
-
- 已标记为答案 Cookie Luo 2011年4月18日 1:57
-
你好
我没有碰到你说的无法创建应用程序的错误。
我尝试着上面的解决方案,出现了Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))的错误。
然后我在Vs Command Prompt里面注册下这个Com组件。
RegSvr32 C:\Windows\SysWOW64\rmoc3260.dll
最后把项目的Platform Target从Any Cpu改成X86,一切oK了。不太清楚你为什么会碰到那个错误。你把你的步骤详细说下。
希望对你有帮助。
Cookie Luo[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Cookie Luo 2011年4月18日 1:57
-
你好
你用的vs版本是?我是在vs2008下测试的。把你操作的步骤详细说明下。让我们能够重现。
Cookie Luo[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
我使用的也是VS2008的版本。
我直接下载的AxInterop.RealAudioObjects.dll和Interop.RealAudioObjects.dll两个dll文件,没有在电脑上安装realplayer软件。我下载之后然后先使用regsvr32把这两个dll文件都注册之后,然后再工具箱中添加了它。之后新建了一个windows窗体然后把刚才添加的那个控件拖到窗体中,或者我给放到一个panel中,现在编译不执行其他的任何操作就出现了上述提到的((System.ComponentModel.ISupportInitialize)(this.axRealAudio1)).EndInit(); 出现未处理的Invalidoperationexception异常,无法获取“AxRealAudio”控件的窗口句柄。不支持无窗口的 ActiveX 控件错误。谢谢帮忙。
-
我觉得原因应该是你没装realPlayer。我试着在我的电脑把realplayer安装的文件夹删掉,发现拖上去的控件消失了。
而且上面那篇文章虽然说可以不需要安装,但是他似乎没有测试不安装是不是能起作用。他的代码里面有videotest.rm,这个文件是安装了realplayer默认就有的。
你试试安装realplayer。这个是在我这边的测试结果。
Cookie Luo[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
你试试Microsoft.DirectX.AudioVideoPlayback。
需要先安装下directx sdk。
Cookie Luo[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.