Oculus screen casting in custom web application
I'm trying to create a web application (for PC) that will display the screencasting from Oculus Quest. I don't want to create any native application for oculus to catch the stream, so I tried 2 approaches:
- Create a webpage for Oculus with screencasting option and then using webrtc stream it to the browser on PC - but this doesn't work I cannot get the screen stream - Oculus browser (based on Android Browser) doesn't support Screen Capture API -
- Use Oculus Casting (this which works with oculus.com/casting or mobile Oculus application). Still, I cannot find any API documentation for that. I've tried to check how the oculus page works - it uses the webrtc under the hood, but when I tried to use the webrtc offer taken from graph.oculus.com/graphql - I get the following error:
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.
that means that the sdp from Oculus API doesn't contain the fingerprint. I tried to find a way to disable this chrome security check using the --disable-webrtc-encryption, but it doesn't work..
Have you any other suggestions or hints?
