redphx / better-xcloud Goto Github PK
View Code? Open in Web Editor NEWUserscript to improve Xbox Cloud Gaming (xCloud) and Remote Play experiences on web browsers
Home Page: https://better-xcloud.github.io
License: MIT License
Userscript to improve Xbox Cloud Gaming (xCloud) and Remote Play experiences on web browsers
Home Page: https://better-xcloud.github.io
License: MIT License
Thanks a lot for your script. See if it's possible to make a choice of streaming frame rate? It will be useful for owners of weak laptops. My laptop does not run at 100% speed when using the default user agent. You have to use a mobile user agent. But the quality is worse
How to get some license?No contact information .
Describe the bug
Since 1.9, when ever I start a game, it no longer starts it in the full screen mode. I now have to manually set the full screen setting in game everytime.
Expected behavior
Versions prior to 1.9, when starting a game it would automatically change to full screen.
Platform (please complete the following information):
OS: Android TV (shield TV pro and tube versions 2019)
Browser: Kiwi
Browser Version: 116
Better xCloud Version: 1.8.2
The wait time xCloud showed to you is not entirely accurate. For example, it may show that the wait time is 10 minutes, but actually, it's only 6 mins.
If your wait time is 10, then the actual time is somewhere between 5 to 11 mins, and if it's 15 then it's in the 10-16 mins range, etc.
I think the reason they didn't show the exact time is that they don't want you to be angry when the estimated time is wrong (and you feel happy when you get in the game sooner than expected).
This feature is also useful when you want to implement something like showing an alert dialog (switch to tab) when the game is ready.
(The same place where you can see Stream badges)
This lets you able to temporarily see the stats without having to manually turn it on/off. Hide the stats after closing the menu if it's previously hidden.
On iOS, xCloud requires that it be added to the Home Screen as a portable web app before being able to play, thereby skipping better xcloud. Is it possible to add a setting to bypass this?
Sometimes things break and xCloud returns a 404 page. Can you please inject on the 404 page some troubleshooting steps and a button to reset better xCloud’s settings as a final step?
xCloud still connects to IPv4 server
Is your feature request related to a problem? Please describe.
Sometimes there should be the case that you should use other servers when the current server is very lagging, but if you change to other servers the cloud forces you to cap at 45 fps or less depending on ping.
Describe the solution you'd like
Would be like to see options to 'Force 60 fps' regarding of connection status.
Describe alternatives you've considered
None at the moment.
Additional context
Would work very well alongside with 'Force 1080p' settings.
This is different from all other currently available extensions.
My approach is to use the official touch controller from xCloud instead of implementing a custom one.
I'm still not sure if it's possible or not, but still worth noting.
On Safari for Mac, xCloud does not officially support the microphone, however it works if the user agent is changed to Edge for Windows. Can you please add a switch to enable microphone support on Safari?
Similar to Quick Resume
and FPS Boost
badges on Xbox console, the script should show status badges of the stream to let users know more about the current streaming session.
Some suggestions:
It's because Firefox doesn't support RTCRtpTransceiver.setCodecPreferences()
API.
Already found a work-around without having to change User-Agent.
The in-game battery badge in the stream menu is constantly 100% despite the iPhone battery level being different
When playing from a PC Browser, it would nice if you can make an option to enter the game in fullscreen mode automatically, and exit when you quit the game.
Thanks !
Describe the bug
It makes no sense to me that I got ~30ms decode time in a 60FPS stream, where I got a smooth stream, no lag or frames dropped.
The stats bar is updated every 1 second, so the decode time should be < 16ms for a 60 FPS stream to have a smooth experience.
Expected behavior
Decode time should be < 16ms for a 60 FPS stream.
Platform (please complete the following information):
I don't know what the current Xcloud Afk time is, but depending on the game can be too short. Would you have any way to explore the increase in this deadline?
Describe the bug
When I activate fullscreen mode, I can't access the Xcloud menu within the game
Platform (please complete the following information):
Some users report that the script doesn't work with Kiwi Browser (crashes when trying to play).
I don't use this browser personally so it's gonna be in a low-priority list.
I still recommend using Better xCloud with Firefox/Hermit on Android.
Platform
Describe the bug
The script still loads, but the button doesn't show.
Redphx, it would be interesting, to finalize this feature, that the bar became transparent and the information such as “FPS”, “RTT”…, in a color, like red or another color that would be interesting. I think it would make the feature excellent.
Bypass User-Agent detection method of xCloud without having to change global User-Agent.
Sometimes you want to play in lower resolution to save battery life, mobile data... or because your internet connection is slow.
Trying to access xCloud produced error 404 after updating to better xcloud v1.10.1. The error cleared after about 10 refreshes.
Would be nice if you could implement the feature like in the official Xbox desktop app where the mouse pointer hides itself after a certain amount in seconds of using the controller.
Despite having a good connection in my opinion (3gb/s for my household), i feel that there is an annoying fraction of a second delay that confuses me a lot with my controls and my internet speed. Comparing to GeForce NOW, there is a huge difference to mention. No delay seems to be seen there on my side. Is it because this streaming service is hosting Computers and Xbox Cloud Gaming is doing the same but for consoles which affects the quality of streaming or it's purely my problem? Am i alone being affected by this or there are similar cases with other people using a good connection speed?
I am aware that this doesn't relate to this project, although i hope some kind being could help me solve or improve my confusing situation.
Thanks in advance,
Simon
By default xCloud only returns 1080p stream if you're playing on desktop devices. This is why changing User-Agent to Chrome desktop will give you a higher quality stream.
By intercepting HTTP request we could make xCloud server think we're on desktop (without having to change UA).
Describe the bug
xCloud returns a 404 page after changing the user agent to edge on macOS due to missing window.navigator.platform
and window.navigator.userAgentData
values
To Reproduce
Steps to reproduce the behavior:
Platform (please complete the following information):
Additional context
I also encountered this issue during my testing with changing the user agent. Copying the values from Edge and loading them at document-start resolved it. xCloud appears to use these values as part of the platform detection process.
If you run into the error page from time to time, try to switch the "User-Agent profile" to default.
Still investigating the problem.
Hi, until yesterday, when I got version 1.2.1, I was able to press the home button on my controller without it activating the Xcloud menu during the game. With 1.3.1, this came back… Can it be removed again? Since I don’t use an official joystick, my home button is also the button that turns off the controller…
I don’t know if that was a coincidence. Thanks for the script.
I won't be implementing this feature as it will increase the chance of getting banned by Xbox.
Sometimes you can fix the bad connection to the stream simply by refreshing the page.
But when playing on mobile (like Kiwi Browser, Android), the "pull to refresh" feature is disabled. You can only quit the stream (and run into the risk of having to queue for the stream again) or close the browser and reconnect to the game.
Having a "Refresh" button is a much better solution.
This feature saves the current frame of the stream to a file.
It's not the same as capturing screenshot on console but it's still better than capturing the entire screen.
Hermit doesn't support @run-at
flag in Userscript at the moment. Without it Better xCloud couldn't patch native API before the page load, leads to broken features.
I reported the bug to the dev, now we wait for the update. If you're using Hermit, please also report this bug to the dev.
In the mean time, use Kiwi Browser instead.
Red, I don't know if you already know, but with Clarity Boost turned on, the video adjustment options (Contrast, Saturation...) Does not work.
Amend this issue clears my doubts: The more objects we see in Xcloud, for example, moving objects, with a lot of details, can cause FPS loss in WEBRTC on old computers?
Describe the bug
When starting the game the screen goes black, you can only hear the sound of the game. I use Kiwi Browser on android.
Platform (please complete the following information):
I'm playing on a Logitech G Cloud, and it's annoying to have the touch controller keep showing when I try to touch the screen.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.