kevinshen56714 / SkyOffice

Immersive virtual office built with Phaser, React, Redux, PeerJS, and Colyseus.
https://sky-office.co/
MIT License
930 stars 289 forks source link

Cannot connect microphone/camera nor share screen when exposing service #68

Open diningphil opened 1 year ago

diningphil commented 1 year ago

Hi,

I managed to deploy SkyOffice on a server in an internal network. When I do port forwarding and connect to localhost:[port], I am able to connect the webcam and microphone. Instead, when I expose the service with --host and try to connect my camera, this does not work. I get the following error in Firefox when inspecting the page

Uncaught (in promise) TypeError: 'microphone' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName.
checkPreviousPermission WebRTC.ts:58
launchGame Bootstrap.ts:96
handleConnect RoomSelectionDialog.tsx:115

Have you experienced this error? Could you help me? The same happens on Chrome and Edge.

Thanks!