redphx / better-xcloud

Userscript to improve Xbox Cloud Gaming (xCloud) and Remote Play experiences on web browsers
https://better-xcloud.github.io
MIT License
774 stars 47 forks source link

[Feature] Add LG TV (webOS) support #278

Closed redphx closed 2 months ago

redphx commented 7 months ago

Edit: finished https://better-xcloud.github.io/lg-webos/

redphx commented 7 months ago

Not working on LG CX because the web app wrapper still uses Chromium 68.

xCloud works with the Browser app because it uses Chromium 79.

iErenYeager commented 6 months ago

Tem alguma versão que funciona na TV LG nanocell?, webOS 5.5.0-1103(jhericurl-jervisbay) versão

DavidNi05 commented 6 months ago

WIP

Requirements:

  1. LG OLED TV 2022 or later (webOS 22 or later)
  2. Install webOS Homebrew (use Developer Mode method, no root needed)
  3. Successfully setup webOS CLI on PC
  4. I'll provide a test file later

Could you provide a video on how to do this, I want to help but I don't have the knowledge.

redphx commented 6 months ago

Tem alguma versão que funciona na TV LG nanocell?, webOS 5.5.0-1103(jhericurl-jervisbay) versão

Thanks but it requires webOS 22 or later

redphx commented 6 months ago

WIP Requirements:

  1. LG OLED TV 2022 or later (webOS 22 or later)
  2. Install webOS Homebrew (use Developer Mode method, no root needed)
  3. Successfully setup webOS CLI on PC
  4. I'll provide a test file later

Could you provide a video on how to do this, I want to help but I don't have the knowledge.

Which model do you have? If it runs webOS 22 or later then you can follow this guide: https://www.youtube.com/watch?v=Q5NLq_SAhIc

DavidNi05 commented 6 months ago

WIP Requirements:

  1. LG OLED TV 2022 or later (webOS 22 or later)
  2. Install webOS Homebrew (use Developer Mode method, no root needed)
  3. Successfully setup webOS CLI on PC
  4. I'll provide a test file later

Could you provide a video on how to do this, I want to help but I don't have the knowledge.

Which model do you have? If it runs webOS 22 or later then you can follow this guide: https://www.youtube.com/watch?v=Q5NLq_SAhIc

Firstly, thank you for everything, the model of my LG TV is 43UQ7500PSF, I carried out the procedure in the video tutorial, everything went well, the possibilities that this opens up are unbelievable, at the moment I have Crushyrool installed unofficially 😱, I am waiting for the test file, then could you make available in the unofficial file store. Thank you for sharing your knowledge.

redphx commented 6 months ago

@DavidNi05

Please use the Dev Manager app to install this file (unzip, then use the blue Install button in the top-right corner to import the .ipk file). Thanks.

com.redphx.better-xcloud_3.2.3_all.ipk.zip

DavidNi05 commented 6 months ago

@DavidNi05

Please use the Dev Manager app to install this file (unzip, then use the blue Install button in the top-right corner to import the .ipk file). Thanks.

com.redphx.better-xcloud_3.2.3_all.ipk.zip

Link Off-line

Error 404 Not Found Not Found

Error 54113 Details: cache-gru-sbsp2090041-GRU 1710291325 3910707687

Varnish cache server

redphx commented 6 months ago

@DavidNi05 The app works for me, so I think it's your network. Try holding the Back button on the remote to close the app and try again.

Can you open https://xbox.com/play in the Browser app?

DavidNi05 commented 6 months ago

@DavidNi05 The app works for me, so I think it's your network. Try holding the Back button on the remote to close the app and try again.

Can you open https://xbox.com/play in the Browser app?

I can't download the ipk file

the link appears to be disconnected

https://github.com/redphx/better-xcloud/files/14580350/com.redphx.better-xcloud_3.2.3_all.ipk.zip

redphx commented 6 months ago

Try this link, no need to unzip: https://we.tl/t-180YtMqnXn

DavidNi05 commented 6 months ago

Try this link, no need to unzip: https://we.tl/t-180YtMqnXn

I downloaded it and installed it, here it has infinite loop loading it almost worked, the attached link is from the video I recorded from the TV

https://streamable.com/t48013

redphx commented 6 months ago

Please try again with this file: https://we.tl/t-3QCXPzz4Ma

It will throw 2 alerts. Please tell we what they say.

DavidNi05 commented 6 months ago

Please try again with this file: https://we.tl/t-3QCXPzz4Ma

It will throw 2 alerts. Please tell we what they say.

It continues in the infinite loop loading the xbox logo and doesn't look like any message.

bnnx commented 6 months ago

I tested both .ipk files on a 65NANO77SRA and got the same behavior as @DavidNi05, infinite loading with the xcloud screen appearing quickly sometimes

ykelle commented 6 months ago

Hi,

I am also interested in this. I also get the infinite loop on my LG 77C29. I tried to use the web inspector [1] to debug it. It seems like the safari workaround[2] is called every time. Hope I could help.

Screenshot from Screencast from 16 03 2024 19:43:56 webm

[1] https://webostv.developer.lge.com/develop/getting-started/app-debugging#web-inspector [2] https://better-xcloud.github.io/safari/

redphx commented 6 months ago

@bnnx @ykelle Please try again with this version: https://we.tl/t-NO65kSQbsa

I disabled the safari workaround in this version

bnnx commented 6 months ago

@bnnx @ykelle Please try again with this version: https://we.tl/t-NO65kSQbsa

I disabled the safari workaround in this version

This .ipk works!! but I got two problems: 1 - The scroll did not work with the LG control 2 - The keyboard doesnt appear in app, so I cant login and play any game

Thanks for your help!

DavidNi05 commented 6 months ago

@bnnx @ykelle Please try again with this version: https://we.tl/t-NO65kSQbsa I disabled the safari workaround in this version

This .ipk works!! but I got two problems: 1 - The scroll did not work with the LG control 2 - The keyboard doesnt appear in app, so I cant login and play any game

Thanks for your help!

IMG_20240318_220739

IMG_20240318_214312

IMG_20240318_214846

IMG_20240318_213248

Everything went fine, but I can't use the cursor and I can't use any letter of the alphabet, not even with the keyboard, it only works with numbers.

redphx commented 6 months ago

I'll share a new version later today

redphx commented 6 months ago

@bnnx @DavidNi05 please try again with this file: https://we.tl/t-IsAz4qSzIQ

The login page will be redirected to https://xbox.com/play/login/deviceCode

Open the link https://xbox.com/tvsetup on another device to log in.

DavidNi05 commented 6 months ago

@bnnx @DavidNi05 please try again with this file: https://we.tl/t-IsAz4qSzIQ

The login page will be redirected to https://xbox.com/play/login/deviceCode

Open the link https://xbox.com/tvsetup on another device to log in.

IMG_20240319_224657

IMG_20240319_223800

IMG_20240319_224318

IMG_20240319_224018

IMG_20240319_225551

IMG_20240319_225647

As per the images shown above, the app is now playable and the script is working, the observations I made is that the multiple selection boxes cannot be modified, for example, the one for 1080p or 720p resolution, these are not possible to modify, the These check list boxes can be checked, I also noticed that the script is out of date and cannot be updated, a QR Code appears, as shown above it is not possible to update it, another thing on the loading screen is the image (rocket) the game's background image only remains for a few seconds and finally the settings menu within the game (that menu at the top) I was also unable to modify it, but the most important thing is playable and it was much better than using the Computer with HDMI cable, the quality is excellent, I'm only going to play on this app from now on 😁 .

redphx commented 6 months ago

Glad to hear that!
Try this version, see if the selection boxes work: < deleted >

DavidNi05 commented 6 months ago

Glad to hear that! Try this version, see if the selection boxes work: https://we.tl/t-0IU4OmtlSO

The infinite loading of the web page is back, it's stuck on the Xbox logo, I went back to the previous version

https://we.tl/t-IsAz4qSzIQ

redphx commented 6 months ago

That's weird. Without a real device it's difficult for me to guess the problem.

Have you tried using a bluetooth mouse to interact with the UI?

DavidNi05 commented 6 months ago

That's weird. Without a real device it's difficult for me to guess the problem. Have you tried using a bluetooth mouse to interact with the UI?

I am going to try.

DavidNi05 commented 6 months ago

That's weird. Without a real device it's difficult for me to guess the problem.

Have you tried using a bluetooth mouse to interact with the UI?

IMG-20240320-WA0005

I don't have the Bluetooth mouse, but I tried a few things, I tried to enter inspector mode and I copied and pasted the entire log so you can take a look, apparently something with this feature of entering the login code is giving an error, maybe If you left it as it was or found the bug of endlessly reloading the form, it works below, I leave the link 🔗 for your consultation

https://we.tl/t-vL62jPWa5k

"A form field element has neither an id nor a name attribute. This might prevent the browser from correctly autofilling the form. To fix this issue, add a unique id or name attribute to a form field. This is not strictly needed, but still recommended even if you have an autocomplete attribute on the same element."

I'm going to work and I'll be back at night.

redphx commented 6 months ago

That warning isn't a problem, you can ignore it.

Try this version: https://we.tl/t-gzkTmnKPDf
I made it use 1080p + high-quality codec profile as default.

DavidNi05 commented 6 months ago

That warning isn't a problem, you can ignore it.

Try this version: https://we.tl/t-gzkTmnKPDf I made it use 1080p + high-quality codec profile as default.

It's in an infinite loop of endlessly reloading the web page.

Please pin this version, it is the best of all, it is playable. https://we.tl/t-IsAz4qSzIQ

redphx commented 6 months ago

Sorry, fixed: https://we.tl/t-YQaGo00oqA

Weeny1992 commented 6 months ago

Please add no VPN script, so I could test this app as well. I did run it with VPN on LG 55" NANO763 UHD SmartTV and it worked fearly well. A bit slow on my TV (I have 200/200 Mbit/s internet)

DavidNi05 commented 6 months ago

Sorry, fixed: https://we.tl/t-YQaGo00oqA

announces the app for LG webOS version 0.0.1 it is working very well just needs to update

redphx commented 6 months ago

@DavidNi05 was you able to interact with the dropdown list?

@Weeny1992 maybe later versions

DavidNi05 commented 6 months ago

@DavidNi05 was you able to interact with the dropdown list?

@Weeny1992 maybe later versions

only with bluetooth mouse.

sultansaber commented 6 months ago

Sorry, fixed: https://we.tl/t-YQaGo00oqA

announces the app for LG webOS version 0.0.1 it is working very well just needs to update

Guys the links are expired can you update it please

redphx commented 6 months ago

@sultansaber com.redphx.better-xcloud_3.2.3_all.ipk.zip

DavidNi05 commented 6 months ago

@sultansaber com.redphx.better-xcloud_3.2.3_all.ipk.zip

Please update 3.3.0

DavidNi05 commented 6 months ago

@redphx

IMG_20240331_215734

IMG_20240331_215858

IMG-20240320-WA0005(1)

The dialog boxes only work with a mouse, I noticed that it only has 1080p, you could take advantage and add the 4K option too for us to test, CO-OP mode is not working, and the image and sound quality is perfect.

mattsimoessilva commented 5 months ago

Hey, thanks for making this. But i'm clicking things on the app and nothing happens :(

mattsimoessilva commented 5 months ago

@DavidNi05 Could you share the latest version of the file with me? I can't access it, it has expired

redphx commented 5 months ago

@DavidNi05 @sultansaber @mattsimoessilva

3.5.2 is here. Not sure the selection boxes are working yet.

com.redphx.better-xcloud_3.5.2_all.ipk.zip

Cadife commented 5 months ago

@redphx 3.5.2 não abre, da falha ao abrir tente novamente!

DavidNi05 commented 5 months ago

@DavidNi05 @sultansaber @mattsimoessilva

3.5.2 is here. Not sure the selection boxes are working yet.

com.redphx.better-xcloud_3.5.2_all.ipk.zip

When I get home I'll test the new version

Cadife commented 5 months ago

@redphx testa o modo coop, na versão anterior não estava funcionando.

mattsimoessilva commented 5 months ago

Thanks, guys. But i've discovered that the problem is my LG TV model, it's not new enough 😔

Cadife commented 5 months ago

@redphx Test coop mode, in the previous version it wasn't working.

DavidNi05 commented 5 months ago

@DavidNi05 @sultansaber @mattsimoessilva 3.5.2 is here. Not sure the selection boxes are working yet. com.redphx.better-xcloud_3.5.2_all.ipk.zip

When I get home I'll test the new version

It doesn't work and the page keeps reloading, the only one that works is the old outdated version, 3.2.3, but it works well and the quality is fantastic, I put it on Mediafire in case the community wants to use it on LG Web Os.

https://www.mediafire.com/file/h1hqijh9wp00ezv/com.redphx.better-xcloud_3.2.3_all.ipk/file

redphx commented 5 months ago

@DavidNi05 sorry I built the wrong version. This should be correct:

com.redphx.better-xcloud_3.5.2_all.ipk.zip

DavidNi05 commented 5 months ago

@DavidNi05 sorry I built the wrong version. This should be correct:

com.redphx.better-xcloud_3.5.2_all.ipk.zip

It didn't work, it keeps restarting all the time

A message appears saying Failed to run Better Xcloud. Trying again, please wait...

https://github.com/redphx/better-xcloud/assets/162837363/af957b26-c61e-454b-83df-477e998d41bb

redphx commented 5 months ago

@DavidNi05 It should work this time

com.redphx.better-xcloud_3.5.3_all.ipk.zip