Code Monkey home page Code Monkey logo

Comments (8)

eslavnov avatar eslavnov commented on June 8, 2024 1

Hey, I think that this endpoint might be used for search (I remember seeing something like that in the mobile app), but I don't have access to a TV right now to test. I'll take a look in a week or two and will report back.

from pylips.

zierka avatar zierka commented on June 8, 2024 1

The text entry endpoint is at POST /input/textentry and the body is:

{"currentstring" : "<the full string you want to pass to the textfield>"}

It looks like it works only if the POST /notifychange API returns that "textentry":"requested".

Looks like it works for textfields where the builtin android keyboard is showing on the TV. There are apps that do not use the standard android keyboard (Netflix, HBO GO), so text input did not work there.

That's what I know for now. I checked this by inspecting the calls the Philips Remote iOS app is doing.

from pylips.

eslavnov avatar eslavnov commented on June 8, 2024

Ok, so I've tested the search in the Phillips mobile app, however, it does not use this endpoint...

I'll try to investigate more, but for now I unfortunately have no clue where the textentry enpoint is used...

from pylips.

eslavnov avatar eslavnov commented on June 8, 2024

Closing the issue for now since I don't have any more ideas to test. Will re-open when there is any new info/ideas available.

from pylips.

eslavnov avatar eslavnov commented on June 8, 2024

@zierka, thank you for sharing this! I'll check if it's indeed the case and will update the docs if it works!

from pylips.

evgsil avatar evgsil commented on June 8, 2024

FYI one more useful feature is to send chars one by one to POST /input/key
with the body {"unicode" : "A"}

Works pretty well on input fields for my non-Android TV (2019)

from pylips.

evgsil avatar evgsil commented on June 8, 2024

Also you could use POST /input/pointer
with
{
"x": 50,
"y": 50
}
which will move cursor 50 points left and 50 points down

from pylips.

zierka avatar zierka commented on June 8, 2024

/input/textentry

{
  "currentstring" : "<the full string you want to pass to the textfield>",
  "action_id": "IME_ACTION_SEARCH"
}

This also submits the input.

from pylips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.