问题描述
尝试在Windows手机上捕捉视频时出错。
I'm getting an error while trying to capture video on the windows phone.
我还包括 CaptureDeviceConfiguration 。RequestDeviceAccess();
I also included CaptureDeviceConfiguration.RequestDeviceAccess();
if ( CaptureDeviceConfiguration 。RequestDeviceAcces s()
&& captureSource.VideoCaptureDevice!= null
)
if(CaptureDeviceConfiguration.RequestDeviceAccess() && captureSource.VideoCaptureDevice != null )
{
captureSource.Start();
captureSource.Start();
}
推荐答案
这是一个Windows Phone 7.1目标项目/应用程序吗?
Is this a Windows Phone 7.1 targeted project / application?
如果是这样,您是否在代码中引用了Microphone类以确保检测到该功能?
If so, do you have a reference to the Microphone class in your code to ensure the capability is detected?
ex:
public class CapabilityPlaceholder
{
Microphone unusedMic = null;
private string unusedMethod()
{
return unusedMic.ToString();
}
}
这篇关于试图执行未经授权的操作captureSource.Start()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!