hobbyquaker / lgtv2

Control LG WebOS TV using node.js :tv:
MIT License
334 stars 44 forks source link

How do I open an URL from a web hosted app into the television's browser? #32

Open KatkayApps opened 4 years ago

KatkayApps commented 4 years ago

I am developing a web hosted app. I need to open an internet page inside that app in a way that I see the cursor and I can move it around the page and click on buttons, using the regular remote control.

I don't see a way to enable the cursor and make it move as I click on the remote arrows, as it does in the internet browser that comes with the tv.

So, I need one of two things:

  1. a way to launch a specific URL from the app and make that URL open on the television's browser or
  2. enable the cursor inside the app in a way that it moves as I press the remote arrows. The app is running inside chromium engine, right? So, the cursor must be disabled. Any way to enable it?

thanks

jmealo commented 4 years ago

@KatkayApps: Did you find a way to do this yet? I'll circle back and tag you if I do.

jmealo commented 4 years ago

@KatkayApps: This works for me:

lgtv.request('ssap://system.launcher/launch', {
   id: 'com.webos.app.browser', params: { target: url }
});
KatkayApps commented 3 years ago

Brilliant! Thanks.