问题描述
我正在尝试创建一个 Web 应用程序(适用于 PC),该应用程序将显示来自 Oculus Quest 的截屏。我不想为 oculus 创建任何本地应用程序来捕捉流,所以我尝试了 2 种方法:
- 使用截屏选项为 Oculus 创建网页,然后使用 webrtc 将其流式传输到 PC 上的浏览器 - 但这不起作用我无法获取屏幕流 - Oculus 浏览器(基于 Android 浏览器)不支持屏幕捕获API - https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API
- 使用 Oculus Casting(适用于 https://oculus.com/casting 或移动 Oculus 应用程序)。尽管如此,我还是找不到任何相关的 API 文档。我试图检查 oculus 页面是如何工作的 - 它在引擎盖下使用 webrtc,但是当我尝试使用从 https://graph.oculus.com/graphql?locale=en_GB 获取的 webrtc 报价时 - 我收到以下错误:
ERROR Error: Uncaught (in promise): InvalidAccessError: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote offer sdp: Called with SDP without DTLS fingerprint.
Error: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote offer sdp: Called with SDP without DTLS fingerprint.
这意味着来自 Oculus API 的 sdp 不包含指纹。我试图找到一种使用 --disable-webrtc-encryption
禁用此 Chrome 安全检查的方法,但它不起作用..
您还有其他建议或提示吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)