MediaCapture.InitializeAsync()给出了一个例外 [英] MediaCapture.InitializeAsync() gives an exception
问题描述
所以基本上我尝试创建一个使用网络摄像头的应用程序。一切正常,直到我离开应用程序,然后回到它。当我这样做时,我得到这个异常'HRESULT = 0xC00D36B2,消息:"请求在当前状态下无效"
'。
我见过很多人问这个问题,但我没有看到答案。有没有人解决这个问题?
EA
<你好Gregory
如果你用样本测试过,会抛出同样的异常吗?
https://code.msdn.microsoft.com/windowsapps/Media-Capture-示例-adf87622
我可能知道您是否在为Windows Phone或Windows应用商店应用工作?
So basically I tried to create an app that makes use of the webcam. Everything works fine till I leave the app then go back to it. When I do this, I get this exception 'HRESULT = 0xC00D36B2, Message: "The request is invalid in the current state" '.
I've seen a lot of people ask this question but I haven't seen an answer posted. Did anyone get around to solving this issue?
EA
Hi Gregory
If you tested with the sample, will the same exception thrown? https://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622
And may I know if you are working for Windows Phone or Windows Store App?
这篇关于MediaCapture.InitializeAsync()给出了一个例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!