uwp - 如何将 hololens 2 视频流式传输到 PC UWP 应用程序?
问题描述
我已经在 hololens2 上运行了一个 UWP 应用程序,它会执行显示预览相机照片之类的操作。
今天我想将预览照片流式传输到我尝试过设备门户 API 的 PC UWP 应用程序,但它会延迟 2~3 秒。
我还尝试了 MixedReality-WebRTC 和 Windows-universal-samples-Windows-universal-samples,但它们都需要 cpature 设备和我的 pc 没有任何捕获设备。
有没有其他方法可以做到这一点?
请原谅我的英语很糟糕。
我曾尝试初始化 PeerConnection,但出现如下错误: 未处理的异常
解决方案
To share the first-person perspective as a video stream for the local user, you can also leverage built-in Miracast support to stream videos to the display receivers(such as your PC). For more information, please refer to Mixed Reality official doc:Shared experiences in mixed reality.
Besides, video capture is optional for two peers in the MixedReality-WebRTC -- local media track (sender) and one remote media track (receiver), both of which can be null. So, if don’t have any capture devices, you don't have to add source local/remote media in your app.
推荐阅读
- hyperledger-fabric - 使用 TLS 将链码作为外部服务:已安装但查询未找到?
- javascript - 只让最后一个 API 调用通过
- android - 带有不同尺寸图像的android tensorflow静态图像分割问题
- image - CreateScaledBitmap 方法在调整图像大小时返回模糊图像
- ios - 如果我将我的 iOS 应用目标从 iOS 11 升级到 iOS 13,13 之前的用户会发生什么情况?
- python - Python:如何编写通用脚本并避免硬编码字符串?
- visual-studio-code - VisualStudio Code Javascript IntelliSense 在导出或导入时中断
- c - Cygwin 未在 C 中显示任何输出
- npgsql - 在 npgsql 级别将布尔值转换为位
- java - 如何使相机沿 3D Libgdx 方向移动