Schlaubischlump / shairport-metadatareader-python

A shairport-metadata-reader package written in Python, which supports reading the metadata from the pipe file, the UDP-server and the MQTT server if configured.
GNU General Public License v3.0
9 stars 4 forks source link

ssnc aend unknown #5

Closed yjeanrenaud closed 1 year ago

yjeanrenaud commented 2 years ago

When the AirPlay-client disconnects, it seesm shairport-sync sends out a metadata unknown to the python reader: Unknown shairport-sync core (ssnc) code "aend", with base64 data None.

Schlaubischlump commented 2 years ago

I'm not sure, what this code is used for, but you should be able to safely ignore the message.

Schlaubischlump commented 1 year ago

The codes "abeg" and "aend" are used by shairport sync for airplay 2.

austinliuu commented 11 months ago

Is there a way to capture these code? I would need to track the play/paused status and I noticed it is reflected by paus/disc/pres code

Schlaubischlump commented 11 months ago

Yes, you can listen to the "on_item" callback and handle the code manually.

austinliuu commented 11 months ago

I tried with listener.bind(on_item= print_play_status) but still can't see the printout of status but the WARNING message like [WARNING] Unknown shairport-sync core (ssnc) code "paus", with base64 data None. Am I doing it correctly?

austinliuu commented 11 months ago

Okay I tried listener.bind(playback_state= print_play_status) and it seems to work with a small delay, I guess it is because the event code is still based from Airplay 1