如何在Azure Windows服务器虚拟机中使用网络摄像头? [英] How can I use my webcam inside an Azure windows server virtual machine?

查看:114
本文介绍了如何在Azure Windows服务器虚拟机中使用网络摄像头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure上有Windows Server 2016虚拟机,我正在尝试使用Vuforia和Unity在增强现实中做一些工作.其中一个重要的部分是能够使用我的网络摄像头,但是一旦我进入虚拟机,它就无法识别我的集成网络摄像头.我也尝试通过USB连接网络摄像头,但这也不起作用.这是不可能完成的任务吗?要让服务器实例识别我的笔记本电脑上的网络摄像头,还是有可能?任何帮助,将不胜感激.

I have a Windows server 2016 vm on Azure and I am trying to do some work in Augmented Reality using Vuforia and Unity. An essential part of this is being able to use my webcam but once I am inside the VM it doesnt recognise my integrated webcam. I tried to connect a webcam through USB as well but this doesn't work either. Is this an impossible task...getting a server instance to recognise webcams on my laptop or is it actually possible? Any help would be appreciated.

推荐答案

您可以通过组策略来实现.我在VM中进行了类似的测试.

You could achieve it by group policy. I have a similar test in my VM.

对于Azure VM:安装RDSH角色,并按照以下路径编辑本地组策略:计算机配置\管理模板\ Windows组件\远程桌面服务\远程桌面会话主机\设备和资源重定向,禁用策略设置不允许支持的即插即用设备重定向.

For Azure VM: install RDSH role, and edit local group policy following this path: Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection , disable the setting of policy Do not allow supported Plug and Play device redirection.

对于本地win10客户端:从以下路径编辑本地组策略:计算机配置\管理模板\ Windows组件\远程桌面服务\远程桌面连接客户端\ RemoteFX USB设备重定向,启用设置策略允许该计算机上其他受支持的RemoteFX USB设备的RDP重定向.

For a Local win10 client: edit the local group policy from the path: Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Connection Client\RemoteFX USB Device Redirection, enable the setting of policy Allow RDP redirection of other supported RemoteFX USB devices from this computer.

重新启动双方以更新组策略.

restart both sides to update the group policy.

键入 mstsc 以启动远程桌面连接,然后从以下路径中选择相关的remotefx网络摄像头:在本地设备和资源下显示选项-本地资源-更多.然后单击确定",它应该可以正常工作.

Type the mstsc to launch the Remote Desktop connection, select related remotefx webcam from the path: Show Options-Local Resources-more under the local devices and resources. Then click ok, it should be work.

这篇关于如何在Azure Windows服务器虚拟机中使用网络摄像头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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