MediaCapture.InitializeAsync()给出了一个例外 [英] MediaCapture.InitializeAsync() gives an exception

查看:226
本文介绍了MediaCapture.InitializeAsync()给出了一个例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以基本上我尝试创建一个使用网络摄像头的应用程序。一切正常,直到我离开应用程序,然后回到它。当我这样做时,我得到这个异常'HRESULT = 0xC00D36B2,消息:"请求在当前状态下无效"
'。


我见过很多人问这个问题,但我没有看到答案。有没有人解决这个问题?




EA

解决方案

<你好Gregory


如果你用样本测试过,会抛出同样的异常吗?
https://code.msdn.microsoft.com/windowsapps/Media-Capture-示例-adf87622


我可能知道您是否在为Windows Phone或Windows应用商店应用工作?


- James



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?

--James


这篇关于MediaCapture.InitializeAsync()给出了一个例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆