postlund / pyatv

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

Not working with Harman Kardon's speaker? #2142

Open AlvisDEV opened 10 months ago

AlvisDEV commented 10 months ago

What do you need help with?

Device: HK Citation MultiBeam 1100

pyatv can find and "connect" the device, showing protocol "AirPlay: 3" and "RAOP: 5" available. But can not stream file or change volume. Actually does not react to any command from pyatv.

postlund commented 10 months ago

Please provide some logs when using stream_file and I'll see what I can do.

AlvisDEV commented 10 months ago

image Thank you. I do not dig into the code too much for now and hope I did not make any obvious mistake. When connected to the device, config shows like this pic. Printing metadata shows that the status is : Idel

Discovering devices on network... Connecting to 192.168.0.6 Media type: Unknown Device state: Idle

Even though my speaker is playing music through bluetooth or airplay by other iphone. It did not break the playing too.

I set the break point and call stream_file, but no reaction. returns like below image

postlund commented 10 months ago

AirPlay as a protocol will not allow you to see what someone else is playing, so you will not see any metadata updates if you play from another device (AirPlay or Bluetooth). It will only show what you are playing from pyatv.

I would need the debug logs, some instructions for enabling are here:

https://pyatv.dev/development/logging/

AlvisDEV commented 10 months ago

Hi, stream_file works. I did not call it correctly before. But when I set the local url with some Asian language characters, it does not work. I am not sure whether it is my environment's problem

postlund commented 10 months ago

Do you get an error of any sort? It's hard to say anything without it.

postlund commented 9 months ago

Still interested in this.