Giter Site home page Giter Site logo

redphx / better-xcloud Goto Github PK

View Code? Open in Web Editor NEW
602.0 602.0 36.0 2.25 MB

Userscript to improve Xbox Cloud Gaming (xCloud) and Remote Play experiences on web browsers

Home Page: https://better-xcloud.github.io

License: MIT License

JavaScript 100.00%
userscript xbox xbox-cloud xbox-cloud-gaming xcloud

better-xcloud's People

Contributors

redphx avatar rodrigocode4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

better-xcloud's Issues

[Feature Request] Status badges for stream

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:

  • IPv6
  • HQ codec
  • Region name
  • Video dimension

[Bug] All black with version 1.4.2

After updating to version 1.4.2, everything turned black, although you can hear the game sound in the background. When turning off the script it returns to normal. I will test 1.4.1.

image

[Bug] Fullscreen bug

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

[Feature] Add a "Refresh" button while playing

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.

[Feature] Enable touch controller for all games

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.

[Bug] "We are sorry..." Error After Changing User Agent to Edge

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:

  1. Open xCloud
  2. Change user agent to edge
  3. Save and reload the page

Platform (please complete the following information):

  • OS: macOS Ventura
  • Browser: Safari
  • Browser Version: 16.6
  • Better xCloud Version: 746e32e

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.

[Feature] 30/60 FPS

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

[Bug] Potential bug with 3rd-party controller

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.

Screenshot_34

[Bug] Video Settings does not work with Clarity Boost On

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?

[Question/Info Request] Gameplay affecting input delay on Windows 11.

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

[Feature Request] Hide Cursor

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.

  • Implement the feature by default.
  • Add a checkbox so users can decide whether they want it or not by toggling it in the menu.

[Feature] Increase Xcloud AFK time

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?

[Bug] Black screen when playing

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):

  • OS: Android
  • Browser: Kiwi Browser
  • Browser Version: 116.0
  • Better xCloud Version: I tested the last one and version, and another older one

[Feature Request] Force 1080p stream without changing User-Agent

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).

[Bug] 1.10

Red, I went to test 1.10 and this happened:

image

image

[Feature Request] Capture screenshot

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.

[Bug] Decode Time value is bugged in Kiwi

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.

Screenshots
image

Platform (please complete the following information):

  • OS: Android
  • Browser: Kiwi
  • Browser Version: 116
  • Better xCloud Version: 1.6.2

[Feature] Bypass iOS add to Home Screen prompt

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?

[Feature] Force 60 fps settings

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.

[Bug] Not working properly on Hermit

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.

[Bug] Crashes with Kiwi Browser (Android)

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.

[Bug] Can't access the xCloud menu within the game

Describe the bug
When I activate fullscreen mode, I can't access the Xcloud menu within the game

Platform (please complete the following information):

  • OS: [e.g. Android]
  • Browser: [Kiwi Browser]
  • Browser Version: [116.0.0.0]
  • Better xCloud Version: [1.6]

[Feature] Put the Stream status bar in transparent

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.

[Feature] Enable mic support on Safari

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?

[Feature] Show the real estimated wait time

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.