将Gear摄像头设置为Windows 10 App的默认摄像头 [英] Set Gear camera as default Camera for Windows 10 App
本文介绍了将Gear摄像头设置为Windows 10 App的默认摄像头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我们在联想混合平板电脑/ PC上运行的Windows 10中构建应用程序。
We build an app in windows 10 running on Lenovo hybrid tablet/PC.
我可以设置Gear相机吗?作为我的应用程序的默认相机?如果是,请告诉我该怎么做
Can I set Gear camera as default camera for my App? If yes, please show me how to do that
谢谢
推荐答案
Hi Van,
Hi Van,
请先转到您的设置 - >默认应用 - >按协议选择默认应用
Please first go to your Settings->Default Apps->Choose default apps by protocol
然后你会看到以下网址:
Then you will see the following URL:
并参考以下代码:
private async void button_Click_1(object sender, RoutedEventArgs e)
{
// The URI to launch
string uriToLaunch = "microsoft.windows.camera:";
// Create a Uri object from a URI string
var uri = new Uri(uriToLaunch);
var success = await Windows.System.Launcher.LaunchUriAsync(uri);
}
更新,更多信息的官方文档可能更有用:
Update, the official doc with more info might be more helpful:
https://docs.microsoft.com/en-us/ windows / uwp / audio-video-camera / camera-profiles
H 有帮助。
祝你好运,
Fletcher
这篇关于将Gear摄像头设置为Windows 10 App的默认摄像头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文