pyatv icon indicating copy to clipboard operation
pyatv copied to clipboard

Simulating a “swipe left” or “swipe right”

Open cleverdevil opened this issue 2 years ago • 10 comments

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?

cleverdevil avatar Sep 21 '23 06:09 cleverdevil

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.

postlund avatar Sep 21 '23 16:09 postlund

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

cleverdevil avatar Sep 21 '23 17:09 cleverdevil

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

postlund avatar Sep 21 '23 17:09 postlund

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.

just-a-nonce avatar Nov 28 '23 22:11 just-a-nonce

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

aleszczynskig avatar Nov 29 '23 00:11 aleszczynskig

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

albaintor avatar Jun 06 '24 17:06 albaintor

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.

no-one avatar Jun 11 '24 09:06 no-one

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

albaintor avatar Jun 15 '24 13:06 albaintor