[UWP]没有找到合适的变换来编码或解码内容。通用Windows应用程序(UWP) [英] [UWP]No suitable transform was found to encode or decode the content. universal windows app (UWP)

查看:484
本文介绍了[UWP]没有找到合适的变换来编码或解码内容。通用Windows应用程序(UWP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我尝试使用MediaCapture.i创建一些示例使用此代码

i try to create some sample for using MediaCapture.i used this code

执行此行时出现错误  await _mediaCapture.StartPreviewAsync(); 

i got some error when perform this line await _mediaCapture.StartPreviewAsync(); 

和我的错误消息是  找不到合适的转换来编码或解码内容

and my error message is No suitable transform was found to encode or decode the content

有人可以告诉我发生了什么吗?

can someone tell me what happen?

谢谢

推荐答案

Hello  nkristianto,

Hello nkristianto,

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

我无法重现您的问题。当我完全复制此URL中的代码时:

I cannot reproduce your issue. When I totally copied the code from this URL:

https://msdn.microsoft.com/library/windows/apps/br241124?f=255&MSPPError=-2147217396。

https://msdn.microsoft.com/library/windows/apps/br241124?f=255&MSPPError=-2147217396.

然后在我的代码中设置适当的权限。我可以毫无问题地使用StartPreviewAsync。你能测试一下这个样本:

Then set the proper permissions in my code. I can StartPreviewAsync without problem. Can you test this sample:

https://code.msdn.microsoft.com/windowsapps/media-capture-sample-adf87622

https://code.msdn.microsoft.com/windowsapps/media-capture-sample-adf87622

然后给我结果。如果样本也失败则表示您的环境已损坏。也许您需要重新安装相机驱动程序套件。

And then give me the result. If the sample also fails then it means your environment is corrupt. Maybe you need to reinstall your camera driver kit.

祝您好运,

Barry


这篇关于[UWP]没有找到合适的变换来编码或解码内容。通用Windows应用程序(UWP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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