本文介绍了无法在Windows Mobile 5(手机-> i-mate SPL)上播放3gp视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我编写了一个用于在Windows Mobile中播放媒体的应用程序.我使用了QuartzTypeLib.当我尝试将文件名传递给FilgraphManager的RenderFile方法时,它显示COMException.代码片段.如果我尝试将媒体格式更改为avi,则会显示BadImageFormat异常.            graph =(IGraphBuilder)new FilterGraph();            graph.RenderFile("http://dev.com//test.3gp");//异常在这里            videoWin =图形为IVideoWindow;            videoWin.put_Owner((IntPtr)panel1.Handle);            videoWin.put_WindowStyle(WindowStyle.Child | WindowStyle.ClipSiblings |    WindowStyle.ClipChildren);         &b矩形rc = panel1.ClientRectangle;          videoWin.SetWindowPosition(0,0,rc.Right,rc.Bottom);           control.Run(); 解决方案 I wrote one application for playing media in windows mobile..I used QuartzTypeLib for the same.When I try to pass file name to RenderFile method of FilgraphManager it shows COMException..Anybdy has the solution for the same?Below is my code snippet.If i try to change the media format to avi it shows BadImageFormat Exception.             graph = (IGraphBuilder)new FilterGraph();             graph.RenderFile("http://dev.com//test.3gp");//Exception is here             videoWin = graph as IVideoWindow;             videoWin.put_Owner((IntPtr)panel1.Handle);             videoWin.put_WindowStyle(WindowStyle.Child | WindowStyle.ClipSiblings |     WindowStyle.ClipChildren);            Rectangle rc = panel1.ClientRectangle;            videoWin.SetWindowPosition(0, 0, rc.Right, rc.Bottom);            control.Run(); 解决方案 这篇关于无法在Windows Mobile 5(手机-> i-mate SPL)上播放3gp视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-26 19:16