rvdleun / onoffice

The open-source Virtual Office, powered by WebVR
https://onoffice.app
GNU General Public License v3.0
119 stars 15 forks source link

Not view my screen with macos #14

Open nesmon opened 5 years ago

nesmon commented 5 years ago

I use cardboard but I can't viewscreen of my macos computer. I follow instruction, I view default environement but not view screen.

nesmon commented 5 years ago

With firefox I not view my desktop and with chrome I view my desktop BUT i can't use the movement head :/ I'm on android 7.0 and I use galaxy S6

I need to activate option on my phone ?

rvdleun commented 5 years ago

I'm very sorry for not responding earlier. I assumed that I would get an e-mail whenever a new issue was created, but it seems it wasn't. Will have to see if I can turn this on somewhere. At the moment, I am finishing up some work on one issue, but I'll give this a closer look afterwards.

I know someone who has a S6, so I will see if I can borrow it and try to replicate the bug. So far, I've only really tested this on Android with Chrome, and it had been working on all of those.

If you have the time, could you download a recent build from the master branch? The links can be found here. I've upgraded AFrame to the latest version, and it might have fixed the issue.

Again, my apologies for a late response.

nesmon commented 5 years ago

After some test, iJust find my probleme, I not install VR service of google for my phone :/ After install this, its work, sorry for the useless isue

rvdleun commented 5 years ago

No worries and thanks for reporting in.

I'd like to keep this issue open. It might be interesting to investigate if there'd be a way to detect if the user is missing these services and, if so, give proper instructions.

Nodeswitch commented 4 years ago

Let me know if I need to raise another ticket for this, but I believe I'm encountering the same issue.

OS: Pop OS, Ubuntu Phone: Google Pixel 2 Chrome/Firefox

When using Firefox, the virtual environment, minus the actual screen loads up. I can look about freely.

When using Chrome, the screen loads at an angle, can't be adjusted and I don't have the ability to look about. Example screenshot.

The only errors I'm seeing in the console are:

On launch of the application

[27452:1012/075135.716514:ERROR:adm_helpers.cc(73)] Failed to query stereo recording.

And in use

ERROR PeerServer:  Message unrecognized

I've checked that the Google VR services are installed, reinstalled them just in case, and have launched from from the default drawer and via the Daydream app, but there's no difference. When I press the centre button, nothing happens, but when I resize the screen, the desktop disappears completely.

If there's anything else I can provide, let me know.

rvdleun commented 4 years ago

I've been working on this issue today. As far as I could tell, Chrome is streaming the video in a codec that Firefox doesn't seem to support at the moment. There may be some ways around it.

As for Chrome, that seems to be due to On/Office not running in a secure SSL environment, which results in no deviceorientation events being fired. So the webapp will need to run via https, at least for mobile support. This is something that's already been a long time coming, so I have started to investigate this.

Due to the app hosting all the files themselves, it is a bit tricky to get this running, especially because the app is also using websockets to communicate, something that a browser refuses to connect to, even if you have accepted an unknown certificate. However, after a lot of brainstorming, I think that I may be onto a solution that will get rid of unnecessary websockets as it is and get https:// working. To be continued.

Unfortunately, I have no idea what is causing the issues with Daydream. And at the moment, my old mobile that could run Daydream isn't working properly, so I won't be able to test it any time soon.

rvdleun commented 4 years ago

So I've done a hefty refactor to allow the app to serve everything via https://. There is still some stuff left that I want to do to test before doing a release, but I've created a build from the develop branch that adds an option to run everything via SSL.

The download links are available per platform at https://github.com/rvdleun/onoffice/blob/develop/DEVELOPMENT.md#build

If you have the time, I would really appreciate it if you could see if this fixes the issues that you were having.

Nodeswitch commented 4 years ago

Sorry, just getting the chance to check everything out again.

I can confirm that things are working using Ubuntu 19.10 as the host and Chrome on Android, using the Pixel 2, as the viewer, although I have to drag the display around within the VR environment and centre the screen through the app a couple of times to bring the display in line with my vision. It looks like when loading in initially, the display loads in the middle, but then drops right down.

I've tried to load up using Firefox, but the host machine display doesn't load up for me.

Thanks for all of the work put into this!

max037 commented 4 years ago

hey, I've got a similar situation. I have a BT-300 from Epson. This is a semi transparent HMD (ar glasses). First of all thank you for this great project. This is the first solution i have found to work through this glasses on my linux desktop. When i logged in via chrome browser the desktop appears short in the center and then immediately move up to the top. i guess the screen is also in wrong nook. Is it possible to change the nook and the screen location via an VR Controller? In my opinion the error indicate that the person view of my android device has the wrong height. Let me know if you need further details related to this issue. thank you!

max037 commented 4 years ago

i've also tested with my Oculus Go and it works pretty good - great project. i've also see that the hand controller works very well on this device. i ordered an android compatible VR controller and i will test it on monday with my epson device. let me know if there is a possible solution to change the height, orientation, etc. for my android HMD.

thank you very much for this great work.