IanPhilips / UnityOculusAndroidVRBrowser

3D browser based on GeckoView and Oculus SDK for Unity projects built on Android (Oculus Go/Quest, maybe GearVR)
MIT License
225 stars 63 forks source link

Can I 'request desktop site'? #15

Closed ThatOtherVRGuy closed 4 years ago

ThatOtherVRGuy commented 4 years ago

Some sites will only give you the mobile version, but there are times when you really just need the desktop version (Microsoft Teams and Jit.si from my tests). Any way to do that?

IanPhilips commented 4 years ago

In BrowserView.cs: InvokeToggleUserAgentThenZoomOut(). You'll want to use the zoom out api here as switching from mobile to desktop sometimes results in the window being zoomed in. Have you tried that?

ThatOtherVRGuy commented 4 years ago

Not yet. Sorry. Is this toggle the way to request the desktop version? As I understand it, this sends headers that indicate that the browser is desktop rather than mobile to fool the server into sending that version. I may be wrong...

IanPhilips commented 4 years ago

Is there another way to get the desktop site? That's what I use and it works.