evandcoleman / node-appletv

A node module for interacting with an Apple TV (4th-generation or later) over the Media Remote Protocol.
https://evandcoleman.github.io/node-appletv/
MIT License
178 stars 48 forks source link

No state messages with tvOS14 Beta #45

Open DerThommy83 opened 4 years ago

DerThommy83 commented 4 years ago

Hello,

with tvOS14 there are not state messages received any more. Still working are comamnds, queue, artwork and raw messages. Could you please check if anything has to be adjusted?

Thanks, Thomas

mschwartz commented 3 years ago

Same issue here.

mschwartz commented 3 years ago

https://www.youtube.com/watch?v=KS6f1MKpLGM

mschwartz commented 3 years ago

@evandcoleman any chance of getting this fixed?

mschwartz commented 3 years ago

It looks like pyatv works with tvOS 14.

node-appletv-x fork has an issue with some information about why it doesn't work: https://github.com/stickpin/node-appletv-x/issues/4

"Based on the debug output I found out that the state command is having issues decoding the result of the "PLAYBACK_QUEUE_REQUEST_MESSAGE".

Message length mismatch Message length mismatch"

I don't know where to begin to debug this, but here is the protobuf directory from pyatv. It might be a trivial fix, to replace the protos from this repo with the ones from pyatv.

https://github.com/postlund/pyatv/tree/master/pyatv/mrp/protobuf

evandcoleman commented 3 years ago

Should be fixed in v2 whenever I get around to finishing that. Hopefully soon

mschwartz commented 3 years ago

Awesome, thanks!

I use this for my own custom. home automation software. I used to be able to show a lot of information about what's playing, etc.

2020-10-28 at 1 03 PM

My home automation software:

https://github.com/RoboDomo/

twocolors commented 3 years ago

@evandcoleman hi, wait v2?