首页 > 解决方案 > 如何将 hololens 2 视频流式传输到 PC UWP 应用程序?

问题描述

我已经在 hololens2 上运行了一个 UWP 应用程序,它会执行显示预览相机照片之类的操作。

今天我想将预览照片流式传输到我尝试过设备门户 API 的 PC UWP 应用程序,但它会延迟 2~3 秒。

我还尝试了 MixedReality-WebRTC 和 Windows-universal-samples-Windows-universal-samples,但它们都需要 cpature 设备和我的 pc 没有任何捕获设备。

有没有其他方法可以做到这一点?

请原谅我的英语很糟糕。

我曾尝试初始化 PeerConnection,但出现如下错误: 未处理的异常

标签: uwpvideo-streaminghololens

解决方案


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.


推荐阅读