postlund / pyatv

A client library for Apple TV and AirPlay devices
https://pyatv.dev
MIT License
839 stars 91 forks source link

Simulating a “swipe left” or “swipe right” #2202

Open cleverdevil opened 9 months ago

cleverdevil commented 9 months ago

What do you need help with?

I’ve created a custom universal remote with the help of pyatv - https://github.com/cleverdevil/pnut

Most things work wonderfully, but there is one last hurdle I haven’t been able to overcome. One of the streaming apps I use requires a “swipe left” action on the Siri Remote to reveal a critical piece of navigation. I can’t figure out how to simulate this with pyatv. Any ideas or pointers?

postlund commented 9 months ago

This is currently not supported, but I have an old issue for it (#267). I haven't paid much attention to it since no one has really requested this feature before, but it's certainly possible to do. I just need to take some traffic dumps and come up with an API. I might be able to come up with something next week or so.

cleverdevil commented 9 months ago

Good to hear, thanks @postlund. Happy to test if and when you get to it.

postlund commented 9 months ago

I'll let you know when there's something to test!

just-a-nonce commented 7 months ago

Need "swipe up" as well! In tvOS, to access the task switcher you do quick double press of home... (home delay=250 home), then you can use left and right (or swipe left and swipe right) to select a particular app. To kill that app, you need to "swipe up" (up by itself doesn't seem to work). Without "swipe up" that functionality is blocked.

aleszczynskig commented 7 months ago

You can double tap up to achieve the same as a swipe.

albaintor commented 3 weeks ago

Hi @postlund do you have any updates to share ? Swipe functions would be really useful thanks

no-one commented 2 weeks ago

It would be great to make these gestures available, because some apps simply assume that they are available. Using these apps is then only possible in this way as a normal click has a different effect.

albaintor commented 2 weeks ago

Hi @postlund ,

how can I help you on this ? how did you manage to sniff network requests to appletv ? And which protocol is used by the remote (at least the touchpad) ? Thanks