Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tipp/Instruction] Launch App with mute key #109

Open
mar565 opened this issue Sep 30, 2021 · 0 comments
Open

[Tipp/Instruction] Launch App with mute key #109

mar565 opened this issue Sep 30, 2021 · 0 comments

Comments

@mar565
Copy link

mar565 commented Sep 30, 2021

I am aware that this is not an issue, but rather a solution. Maybe you can add this to your instructions?

Problem:
LG Smart TV without dedicated Disney+ key on the remote.

Solution:
Missuse mute key to launch the app by double clicking

var clicked = false;
var timer;

on({id: 'lgtv.0.states.mute', change:"ne"}, function (obj) {
    if(obj.state.val && !clicked){
        clicked = true;
       timer= setTimeout(function () {
            clicked = false;
        },1000);
    }
    else if(!obj.state.val && clicked){
       setState("lgtv.0.states.launch", "com.disney.disneyplus-prod");
       clicked = false;
    }
    else{
        return;
    }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants