Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/334.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# CameraCapture Windows8.1和WP 8.1在捕获PhotoToStreamAsync时禁用系统声音_C#_Windows Phone 8_Windows Phone 8.1 - Fatal编程技术网

C# CameraCapture Windows8.1和WP 8.1在捕获PhotoToStreamAsync时禁用系统声音

C# CameraCapture Windows8.1和WP 8.1在捕获PhotoToStreamAsync时禁用系统声音,c#,windows-phone-8,windows-phone-8.1,C#,Windows Phone 8,Windows Phone 8.1,下一步执行时,是否有任何方法禁用系统摄像头声音: var _capture = new MediaCapture(); await _capture.InitializeAsync(); await _capture.CapturePhotoToStreamAsync(ImageEncodingProperties.CreateJpeg(), stream);//phone play system camera shot sound, I need disable this 我认为这是办不

下一步执行时,是否有任何方法禁用系统摄像头声音:

var  _capture = new MediaCapture();
await _capture.InitializeAsync();
await _capture.CapturePhotoToStreamAsync(ImageEncodingProperties.CreateJpeg(), stream);//phone play system camera shot sound, I need disable this 

我认为这是办不到的。MediaCapture只调用手机的默认照相/摄像机应用程序,因此由该应用程序来配置声音(例如,可以启动诺基亚照相/摄像机)。
一种可能的解决方法是在捕获之前降低系统音量,然后将音量调回原来的大小。但是,作为一个用户,我不喜欢这样。

相机快门声音是一个系统设置-用户可以从设置中关闭它。由于许多其他系统设置不适用于第三方应用程序,我认为在这种情况下也是一样的-用户必须手动将其从设置中关闭。