Skip to content

Home key does not work but live tv does? #110

Closed Answered by WesSouza
Jibun-no-Kage asked this question in Q&A
Discussion options

You must be logged in to vote

This is a common practice with JavaScript constants, where the property name has a "human readable" value, and the property value has the actual expected machine value.

So basically you have the convenience name that resolves to the actual value:

const { LGTV, Apps } = require("lgtv-ip-control");

console.log(Apps.youtube);
// Resolves to "youtube.leanback.v4"

That's why Apps, Inputs, etc. are exported for you to use.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by WesSouza
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #96 on December 23, 2023 15:28.