postlund / pyatv

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

add fast forward and rewind support for companion protocol #2363

Open nfreeze opened 2 months ago

nfreeze commented 2 months ago

I closed the previous PR and made the requested change and a couple of others

postlund commented 2 months ago

I closed the previous PR and made the requested change and a couple of others

You can just push --force to the branch and it will update in the PR (as a PR is just a branch), no need for a new PR.

If you check the functional tests for companion, I'd like you to add the new feature constants so they are tested as well.

https://github.com/postlund/pyatv/blob/4b00261b4c08ba1e13db605b109eb1a0df700ffe/tests/protocols/companion/test_companion_functional.py#L46

I'll try to make a full review within the next few days, when I'm in front of a computer. Thanks for the work so far 👌

nfreeze commented 2 months ago

Ah, thanks for the tip. I'm new to the PR workflow so figured I was doing it wrong :) Will update the companion test in a bit.

On Mon, Feb 26, 2024 at 2:19 PM Pierre Ståhl @.***> wrote:

I closed the previous PR and made the requested change and a couple of others

You can just push --force to the branch and it will update in the PR (as a PR is just a branch), no need for a new PR.

If you check the functional tests for companion, I'd like you to add the new feature constants so they are tested as well.

https://github.com/postlund/pyatv/blob/4b00261b4c08ba1e13db605b109eb1a0df700ffe/tests/protocols/companion/test_companion_functional.py#L46

I'll try to make a full review within the next few days, when I'm in front of a computer. Thanks for the work so far 👌

— Reply to this email directly, view it on GitHub https://github.com/postlund/pyatv/pull/2363#issuecomment-1965177007, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE5X54EPTBGRLYDEVWKSALYVTU35AVCNFSM6AAAAABD2W3WUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRVGE3TOMBQG4 . You are receiving this because you authored the thread.Message ID: @.***>

nfreeze commented 2 months ago

I am closing this because I didn't realize you can do right=2 and left=2 in atvremote to simulate fast forward and rewind

postlund commented 2 months ago

That might be true for Apple TVs ringing tvOS, yes. But it won't work for older models nor HomePods or other AirPlay receivers. So I still see a value in adding this.

zehnm commented 2 months ago

Thanks for adding this feature! Let me know if I can help out somehow.

you can do right=2 and left=2 in atvremote to simulate fast forward and rewind

Could you please elaborate? If I use remote_control.right() / remote_control.left() on an Apple TV 4K (gen 2), tvOS 17.3, it only skips forward and backward. Or do you mean something else?

postlund commented 2 months ago

Thanks for adding this feature! Let me know if I can help out somehow.

you can do right=2 and left=2 in atvremote to simulate fast forward and rewind

Could you please elaborate? If I use remote_control.right() / remote_control.left() on an Apple TV 4K (gen 2), tvOS 17.3, it only skips forward and backward. Or do you mean something else?

https://pyatv.dev/development/control/#input-actions

nfreeze commented 2 months ago

If you single press right it skips forward 10 seconds but if you press and hold right (right=2 in atvremote) it goes into fast forward.

On Fri, Mar 8, 2024 at 7:15 AM Pierre Ståhl @.***> wrote:

Thanks for adding this feature! Let me know if I can help out somehow.

you can do right=2 and left=2 in atvremote to simulate fast forward and rewind

Could you please elaborate? If I use remote_control.right() / remote_control.left() on an Apple TV 4K (gen 2), tvOS 17.3, it only skips forward and backward. Or do you mean something else?

https://pyatv.dev/development/control/#input-actions

— Reply to this email directly, view it on GitHub https://github.com/postlund/pyatv/pull/2363#issuecomment-1985677203, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE5X52PIY7HQAT33AD3OUDYXG2V7AVCNFSM6AAAAABD2W3WUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBVGY3TOMRQGM . You are receiving this because you modified the open/close state.Message ID: @.***>