better-xcloud icon indicating copy to clipboard operation
better-xcloud copied to clipboard

[Feature] Add LG TV (webOS) support

Open redphx opened this issue 2 years ago • 54 comments

WIP

Requirements:

  1. LG TV running webOS 22 or later (2022 model or later)
  2. Install webOS Homebrew (use Developer Mode method, no root needed). You can follow this video: https://www.youtube.com/watch?v=Q5NLq_SAhIc
  3. Install Device Manager app on PC to install Homebrew Channel.
  4. Check latest comments for installation file.

redphx avatar Mar 04 '24 22:03 redphx

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.

redphx avatar Mar 07 '24 10:03 redphx

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

iErenYeager avatar Mar 09 '24 19:03 iErenYeager

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.

DavidNi05 avatar Mar 09 '24 20:03 DavidNi05

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 avatar Mar 09 '24 23:03 redphx

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

redphx avatar Mar 09 '24 23:03 redphx

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.

DavidNi05 avatar Mar 13 '24 00:03 DavidNi05

@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

redphx avatar Mar 13 '24 00:03 redphx

@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

DavidNi05 avatar Mar 13 '24 00:03 DavidNi05

@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?

redphx avatar Mar 13 '24 01:03 redphx

@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

DavidNi05 avatar Mar 13 '24 01:03 DavidNi05

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

redphx avatar Mar 13 '24 01:03 redphx

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

DavidNi05 avatar Mar 13 '24 01:03 DavidNi05

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

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

redphx avatar Mar 13 '24 02:03 redphx

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.

DavidNi05 avatar Mar 13 '24 08:03 DavidNi05

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

bnnx avatar Mar 16 '24 20:03 bnnx

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/

ykelle avatar Mar 16 '24 21:03 ykelle

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

I disabled the safari workaround in this version

redphx avatar Mar 18 '24 03:03 redphx

@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!

bnnx avatar Mar 18 '24 18:03 bnnx

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

DavidNi05 avatar Mar 19 '24 01:03 DavidNi05

I'll share a new version later today

redphx avatar Mar 19 '24 02:03 redphx

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

redphx avatar Mar 19 '24 22:03 redphx

@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 😁 .

DavidNi05 avatar Mar 20 '24 02:03 DavidNi05

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

redphx avatar Mar 20 '24 02:03 redphx

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

DavidNi05 avatar Mar 20 '24 08:03 DavidNi05

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?

redphx avatar Mar 20 '24 08:03 redphx

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 avatar Mar 20 '24 08:03 DavidNi05

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.

DavidNi05 avatar Mar 20 '24 10:03 DavidNi05

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.

redphx avatar Mar 20 '24 10:03 redphx

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

DavidNi05 avatar Mar 20 '24 10:03 DavidNi05

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

redphx avatar Mar 20 '24 11:03 redphx