postlund / pyatv

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

When I use cec to switch hdmi, the playing status cannot be updated. #2167

Closed simonwanghub closed 10 months ago

simonwanghub commented 10 months ago

What do you need help with?

2023-09-05  13:46:25 DEBUG Not enough data to parse request on event channel
2023-09-05  13:46:25 DEBUG Received data (Data=2b02ccda7d77e61541d5e004b50afc6b3d25dc2f967d08af316977f7aef7fe29848d275988956a33a3e36835ba96904da6c7ad56ffe6251208359bf0f0e55e6db4ae774a431485ec01b931759afc578c303c0f1ebb66771b63a1718229a6463
ae99e571d6257e7049405bef9263828add03daab1bc5ca1bbcb70dbdeb620b2492dbf339777d343e9da951a2e5fba58e12a072f64009276995a7d8e8484cc031f876bb6ac435fe98037c826f9f7eb6925a5d6847179bb5b5826bd076c3e1d103bf6357c3d65d63b57b2d03e44d175c9b43277caed3acbc
d64319be930b8dd97cc35a0130fc7cf6a2dbe440e93552a8888b55b40d405a708e549f478af1d9e2...)
2023-09-05  13:46:25 DEBUG Got message on event channel: HttpRequest(method='POST', path='/command', protocol='RTSP', version='1.0', headers={'CSeq': '5', 'Content-Length': '1474', 'Content-Type': 'application/x-apple-binary-plist'}, body
=b'bplist00\xd2\x01\x02\x03\x04TtypeUvalueZupdateInfo\xdf\x10\x18\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f%+&-./012%4567?@ABCDESpsiRvv_\x10\x14playbackCapabilities_\x10\x15canRe
cordScreenStream[statusFlags_\x10\x18keepAliveSendStatsAsBody_\x10\x0fprotocolVersionTname_\x10\x11volumeControlType]senderAddressXdeviceIDRpi^screenDemoMode]initialVolumeZfeaturesExZtxtAirPlay_\x10\x10supportedFormats]sourceVersionUmodel
RpkZmacAddress^osBuildVersion_\x10\x15receiverHDRCapabilityXfeatures_\x10$8FC8B5DE-55DC-4AB2-B424-160D366B62E6\x10\x02\xd5 !"#$%&&&&_\x10\x12supportsOfflineHLS_\x10\x1dsupportsUIForAudioOnlyContent_\x10\x15supportsInterstitials_\x10\x15su
pportsFPSSecureStop_\x10!supportsAirPlayVideoWithSharePlay\x08\t\t\t\t\x08\x12\x00\x02\x02D\tS1.1c\x82\xb1g\x9c\\q\x10\x04_\x10\x14192.168.35.239:55176_\x10\x1150:32:37:D7:F5:6D_\x10$c476cfb6-8fea-446e-8232-1d8e9d4650a0\x08#\xc0>\x00\x00\
x00\x00\x00\x00_\x10\x0f1d9/Wt5fFbwooQQO\x11\x01\x86\x05acl=0\x18btaddr=07:1F:6B:0E:97:8C\x1adeviceid=50:32:37:D7:F5:6D\x13fex=1d9/Wt5fFbwooQQ\x1efeatures=0x5A7FDFD5,0xBC155FDE\rflags=0x20244(gid=F3DB4F77-FF82-4F7C-BAB6-71B4F1FECF8F\x05ig
l=1\x06gcgl=1\x10model=AppleTV5,3\rprotovers=1.1\'pi=c476cfb6-8fea-446e-8232-1d8e9d4650a0(psi=8FC8B5DE-55DC-4AB2-B424-160D366B62E6Cpk=0114678cbe748676b3949638007e34ed9ed4e7f0bb149512a902a780523f1aae\x0fsrcvers=695.5.1\x0bosvers=16.6\x04vv
=2\xd489:;<==>_\x10\x15lowLatencyAudioStream\\screenStream[audioStream\\bufferStream\x10\x00\x12\x01D\x08\x00\x137\xc0\x01\x80\x00\xe0\x00\x00W695.5.1ZAppleTV5,3O\x10 \x01\x14g\x8c\xbet\x86v\xb3\x94\x968\x00~4\xed\x9e\xd4\xe7\xf0\xbb\x14\
x95\x12\xa9\x02\xa7\x80R?\x1a\xae_\x10\x1150:32:37:D6:79:FDU20M73W1080p60\x13\xbc\x15_\xdeZ\x7f\xdf\xd5\x00\x08\x00\r\x00\x12\x00\x18\x00#\x00V\x00Z\x00]\x00t\x00\x8c\x00\x98\x00\xb3\x00\xc5\x00\xca\x00\xde\x00\xec\x00\xf5\x00\xf8\x01\x07
\x01\x15\x01 \x01+\x01>\x01L\x01R\x01U\x01`\x01o\x01\x87\x01\x90\x01\xb7\x01\xb9\x01\xc4\x01\xd9\x01\xf9\x02\x11\x02)\x02M\x02N\x02O\x02P\x02Q\x02R\x02S\x02X\x02Y\x02]\x02d\x02f\x02}\x02\x91\x02\xb8\x02\xb9\x02\xc2\x02\xd4\x04^\x04g\x04\x
7f\x04\x8c\x04\x98\x04\xa5\x04\xa7\x04\xac\x04\xb5\x04\xbd\x04\xc8\x04\xeb\x04\xff\x05\x05\x05\r\x00\x00\x00\x00\x00\x00\x02\x01\x00\x00\x00\x00\x00\x00\x00F\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x16')
2023-09-05  13:46:25 DEBUG Sending data (Encrypted=5b00e531006d75be9c5104cddcb92412c22b2fcfd7ef2ceaec1ba95532e9496fdfca483174fadd27b4027ae33fe2be4894fa308f1dc54ec1d70f82d5a1a83294d644ba0e617c05aebaa49380319b20b2b792081801259f794d5a2f3efc0
c0d433ad4625e16a6528ab339e49c3b)
2023-09-05  13:46:25 DEBUG Received data (Data=0004dbeee0da062ec84770ee2cfdcd1346e156f2d505e74736374a4304d55b40282d27ddc6ddb64f6b4ca6adce47e79abd19a00afc98192e45fa27812ec7c6cd54f4a8d5c24f2ba4248da833c09ae063b4c0beab0c0280976da6dcff427ea4e
e42061847192b82007bdd82c6c11beb3d5ad1ccdd168cb17669b338520eb2f599f93275318b06233cdc2b704ce4271ba5d0c69ead9deb6e1b6f1b36bd6d4146b17c1216c6b26f096b7f57fa9c3ac746f1b3365d032d5fbfa80b7b982cef6f8e388aed8bc012baef80da574466ba81985048feb00278c45
5f68e25f3981d2077dd9aac513310954ab32b64ed5f11b3ac4e185b0e039fb0d544ba926d444eded...)
2023-09-05  13:46:25 DEBUG Got message on event channel: HttpRequest(method='POST', path='/command', protocol='RTSP', version='1.0', headers={'CSeq': '6', 'Content-Length': '1474', 'Content-Type': 'application/x-apple-binary-plist'}, body
=b'bplist00\xd2\x01\x02\x03\x04TtypeUvalueZupdateInfo\xdf\x10\x18\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f%+&-./012%4567?@ABCDESpsiRvv_\x10\x14playbackCapabilities_\x10\x15canRe
cordScreenStream[statusFlags_\x10\x18keepAliveSendStatsAsBody_\x10\x0fprotocolVersionTname_\x10\x11volumeControlType]senderAddressXdeviceIDRpi^screenDemoMode]initialVolumeZfeaturesExZtxtAirPlay_\x10\x10supportedFormats]sourceVersionUmodel
RpkZmacAddress^osBuildVersion_\x10\x15receiverHDRCapabilityXfeatures_\x10$8FC8B5DE-55DC-4AB2-B424-160D366B62E6\x10\x02\xd5 !"#$%&&&&_\x10\x12supportsOfflineHLS_\x10\x1dsupportsUIForAudioOnlyContent_\x10\x15supportsInterstitials_\x10\x15su
pportsFPSSecureStop_\x10!supportsAirPlayVideoWithSharePlay\x08\t\t\t\t\x08\x12\x00\x02\x02D\tS1.1c\x82\xb1g\x9c\\q\x10\x04_\x10\x14192.168.35.239:55176_\x10\x1150:32:37:D7:F5:6D_\x10$c476cfb6-8fea-446e-8232-1d8e9d4650a0\x08#\xc0>\x00\x00\
x00\x00\x00\x00_\x10\x0f1d9/Wt5fFbwooQQO\x11\x01\x86\x05acl=0\x18btaddr=07:1F:6B:0E:97:8C\x1adeviceid=50:32:37:D7:F5:6D\x13fex=1d9/Wt5fFbwooQQ\x1efeatures=0x5A7FDFD5,0xBC155FDE\rflags=0x20244(gid=F3DB4F77-FF82-4F7C-BAB6-71B4F1FECF8F\x05ig
l=1\x06gcgl=1\x10model=AppleTV5,3\rprotovers=1.1\'pi=c476cfb6-8fea-446e-8232-1d8e9d4650a0(psi=8FC8B5DE-55DC-4AB2-B424-160D366B62E6Cpk=0114678cbe748676b3949638007e34ed9ed4e7f0bb149512a902a780523f1aae\x0fsrcvers=695.5.1\x0bosvers=16.6\x04vv
=2\xd489:;<==>_\x10\x15lowLatencyAudioStream\\screenStream[audioStream\\bufferStream\x10\x00\x12\x01D\x08\x00\x137\xc0\x01\x80\x00\xe0\x00\x00W695.5.1ZAppleTV5,3O\x10 \x01\x14g\x8c\xbet\x86v\xb3\x94\x968\x00~4\xed\x9e\xd4\xe7\xf0\xbb\x14\
x95\x12\xa9\x02\xa7\x80R?\x1a\xae_\x10\x1150:32:37:D6:79:FDU20M73W1080p60\x13\xbc\x15_\xdeZ\x7f\xdf\xd5\x00\x08\x00\r\x00\x12\x00\x18\x00#\x00V\x00Z\x00]\x00t\x00\x8c\x00\x98\x00\xb3\x00\xc5\x00\xca\x00\xde\x00\xec\x00\xf5\x00\xf8\x01\x07
\x01\x15\x01 \x01+\x01>\x01L\x01R\x01U\x01`\x01o\x01\x87\x01\x90\x01\xb7\x01\xb9\x01\xc4\x01\xd9\x01\xf9\x02\x11\x02)\x02M\x02N\x02O\x02P\x02Q\x02R\x02S\x02X\x02Y\x02]\x02d\x02f\x02}\x02\x91\x02\xb8\x02\xb9\x02\xc2\x02\xd4\x04^\x04g\x04\x
7f\x04\x8c\x04\x98\x04\xa5\x04\xa7\x04\xac\x04\xb5\x04\xbd\x04\xc8\x04\xeb\x04\xff\x05\x05\x05\r\x00\x00\x00\x00\x00\x00\x02\x01\x00\x00\x00\x00\x00\x00\x00F\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x16')
2023-09-05  13:46:25 DEBUG Sending data (Encrypted=5b00732d78d4c14848759f58aeb53a41e8f007f4f058520d3fdec03ea3851d00a93320f34e504c1c55b9ee20e5bf92d05c2815f570b9b56e6c9a625e62a4bdacff58744f109ea687069d3f6093212284aba7451d816fcbafecf0c157f72
f7a228bfd0b445b8b1b0cc1f4d60f11)
2023-09-05  13:46:25 DEBUG Sending periodic heartbeat 101 (AirPlay:192.168.35.230)
2023-09-05  13:46:25 DEBUG Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 104\r\nDACP-ID: 2953BFC3BB2D9139\r\nActive-Remote: 2732218932\r\nClient-Instance: 2953BFC3BB2D9139\r\n\r\n'
2023-09-05  13:46:25 DEBUG Received: b'RTSP/1.0 200 OK\r\nDate: Tue, 05 Sep 2023 05:46:27 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/695.5.1\r\nCSeq: 104\r\n\r\nbplist00\xd1\x01\x02Wstr
eams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-09-05  13:46:25 DEBUG Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'Date': 'Tue, 05 Sep 2023 05:46:27 GMT', 'Content-Length': '55', 'Content-Type': 'application/x-apple-binary-plist
', 'Server': 'AirTunes/695.5.1', 'CSeq': '104'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-09-05  13:46:25 DEBUG Got heartbeat 101 (AirPlay:192.168.35.230)
2023-09-05  13:46:27 DEBUG Sending periodic heartbeat 102 (AirPlay:192.168.35.230)
2023-09-05  13:46:27 DEBUG Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 105\r\nDACP-ID: 2953BFC3BB2D9139\r\nActive-Remote: 2732218932\r\nClient-Instance: 2953BFC3BB2D9139\r\n\r\n'
2023-09-05  13:46:27 DEBUG Received: b'RTSP/1.0 200 OK\r\nDate: Tue, 05 Sep 2023 05:46:29 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/695.5.1\r\nCSeq: 105\r\n\r\nbplist00\xd1\x01\x02Wstr
eams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-09-05  13:46:27 DEBUG Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'Date': 'Tue, 05 Sep 2023 05:46:29 GMT', 'Content-Length': '55', 'Content-Type': 'application/x-apple-binary-plist
', 'Server': 'AirTunes/695.5.1', 'CSeq': '105'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-09-05  13:46:27 DEBUG Got heartbeat 102 (AirPlay:192.168.35.230)
2023-09-05  13:46:29 DEBUG Sending periodic heartbeat 103 (AirPlay:192.168.35.230)
2023-09-05  13:46:29 DEBUG Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 106\r\nDACP-ID: 2953BFC3BB2D9139\r\nActive-Remote: 2732218932\r\nClient-Instance: 2953BFC3BB2D9139\r\n\r\n'
2023-09-05  13:46:29 DEBUG Received: b'RTSP/1.0 200 OK\r\nDate: Tue, 05 Sep 2023 05:46:31 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/695.5.1\r\nCSeq: 106\r\n\r\nbplist00\xd1\x01\x02Wstr
eams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-09-05  13:46:29 DEBUG Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'Date': 'Tue, 05 Sep 2023 05:46:31 GMT', 'Content-Length': '55', 'Content-Type': 'application/x-apple-binary-plist
', 'Server': 'AirTunes/695.5.1', 'CSeq': '106'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-09-05  13:46:29 DEBUG Got heartbeat 103 (AirPlay:192.168.35.230)
2023-09-05  13:46:31 DEBUG Sending periodic heartbeat 104 (AirPlay:192.168.35.230)
2023-09-05  13:46:31 DEBUG Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 107\r\nDACP-ID: 2953BFC3BB2D9139\r\nActive-Remote: 2732218932\r\nClient-Instance: 2953BFC3BB2D9139\r\n\r\n'
2023-09-05  13:46:31 DEBUG Received: b'RTSP/1.0 200 OK\r\nDate: Tue, 05 Sep 2023 05:46:33 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/695.5.1\r\nCSeq: 107\r\n\r\nbplist00\xd1\x01\x02Wstr
eams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-09-05  13:46:31 DEBUG Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'Date': 'Tue, 05 Sep 2023 05:46:33 GMT', 'Content-Length': '55', 'Content-Type': 'application/x-apple-binary-plist
', 'Server': 'AirTunes/695.5.1', 'CSeq': '107'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-09-05  13:46:31 DEBUG Got heartbeat 104 (AirPlay:192.168.35.230)
2023-09-05  13:46:33 DEBUG Sending periodic heartbeat 105 (AirPlay:192.168.35.230)
2023-09-05  13:46:33 DEBUG Sending RTSP/1.0 message: b'POST /feedback RTSP/1.0\r\nUser-Agent: AirPlay/540.31\r\nCSeq: 108\r\nDACP-ID: 2953BFC3BB2D9139\r\nActive-Remote: 2732218932\r\nClient-Instance: 2953BFC3BB2D9139\r\n\r\n'
2023-09-05  13:46:34 DEBUG Received: b'RTSP/1.0 200 OK\r\nDate: Tue, 05 Sep 2023 05:46:35 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/695.5.1\r\nCSeq: 108\r\n\r\nbplist00\xd1\x01\x02Wstr
eams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-09-05  13:46:34 DEBUG Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'Date': 'Tue, 05 Sep 2023 05:46:35 GMT', 'Content-Length': '55', 'Content-Type': 'application/x-apple-binary-plist
', 'Server': 'AirTunes/695.5.1', 'CSeq': '108'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-09-05  13:46:34 DEBUG Got heartbeat 105 (AirPlay:192.168.35.230)
2023-09-05  13:46:35 DEBUG Received data (Data=0004039d40a6871175ee086715d468b113bebe49fc884e1a355e202bba36dd0f7eb84715bce110626b3b38a87c807b3e2e1fbc6c96b8a81720d22cad5343254191fe552e1808a99f34c23fbc227073f726b0416934bdef76c802ad68ea867a8
264a8c6b592eaeeb3223becd3f786f686e3a9cd8f9db2cf1ce5849b99147c0c1bd1847cfda442ebc0f90ba898334c37c10b5a255c6f6823225794c3f027c38bd88955f9489d71b366b1a2d8c22d1ee52f6f8ed532da678b4489b33739d6472be430e0fc642c251b34af4f45c419d7dc0432d4138188ec2
3d6b8c1a438c36668e4b2f2f9cdf4426d6d1694e02d755330dfc1a0de9a89253e98580e86e82735a...)
2023-09-05  13:46:35 DEBUG Got message on event channel: HttpRequest(method='POST', path='/command', protocol='RTSP', version='1.0', headers={'CSeq': '7', 'Content-Length': '1470', 'Content-Type': 'application/x-apple-binary-plist'}, body
=b'bplist00\xd2\x01\x02\x03\x04TtypeUvalueZupdateInfo\xdf\x10\x18\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f%+&-./012%4567?@ABCDESpsiRvv_\x10\x14playbackCapabilities_\x10\x15canRe
cordScreenStream[statusFlags_\x10\x18keepAliveSendStatsAsBody_\x10\x0fprotocolVersionTname_\x10\x11volumeControlType]senderAddressXdeviceIDRpi^screenDemoMode]initialVolumeZfeaturesExZtxtAirPlay_\x10\x10supportedFormats]sourceVersionUmodel
RpkZmacAddress^osBuildVersion_\x10\x15receiverHDRCapabilityXfeatures_\x10$8FC8B5DE-55DC-4AB2-B424-160D366B62E6\x10\x02\xd5 !"#$%&&&&_\x10\x12supportsOfflineHLS_\x10\x1dsupportsUIForAudioOnlyContent_\x10\x15supportsInterstitials_\x10\x15su
pportsFPSSecureStop_\x10!supportsAirPlayVideoWithSharePlay\x08\t\t\t\t\x08\x11\x02D\tS1.1c\x82\xb1g\x9c\\q\x10\x04_\x10\x14192.168.35.239:55176_\x10\x1150:32:37:D7:F5:6D_\x10$c476cfb6-8fea-446e-8232-1d8e9d4650a0\x08#\xc0>\x00\x00\x00\x00\
x00\x00_\x10\x0f1d9/Wt5fFbwooQQO\x11\x01\x84\x05acl=0\x18btaddr=07:1F:6B:0E:97:8C\x1adeviceid=50:32:37:D7:F5:6D\x13fex=1d9/Wt5fFbwooQQ\x1efeatures=0x5A7FDFD5,0xBC155FDE\x0bflags=0x244(gid=F3DB4F77-FF82-4F7C-BAB6-71B4F1FECF8F\x05igl=1\x06g
cgl=1\x10model=AppleTV5,3\rprotovers=1.1\'pi=c476cfb6-8fea-446e-8232-1d8e9d4650a0(psi=8FC8B5DE-55DC-4AB2-B424-160D366B62E6Cpk=0114678cbe748676b3949638007e34ed9ed4e7f0bb149512a902a780523f1aae\x0fsrcvers=695.5.1\x0bosvers=16.6\x04vv=2\xd489
:;<==>_\x10\x15lowLatencyAudioStream\\screenStream[audioStream\\bufferStream\x10\x00\x12\x01D\x08\x00\x137\xc0\x01\x80\x00\xe0\x00\x00W695.5.1ZAppleTV5,3O\x10 \x01\x14g\x8c\xbet\x86v\xb3\x94\x968\x00~4\xed\x9e\xd4\xe7\xf0\xbb\x14\x95\x12\
xa9\x02\xa7\x80R?\x1a\xae_\x10\x1150:32:37:D6:79:FDU20M73W1080p60\x13\xbc\x15_\xdeZ\x7f\xdf\xd5\x00\x08\x00\r\x00\x12\x00\x18\x00#\x00V\x00Z\x00]\x00t\x00\x8c\x00\x98\x00\xb3\x00\xc5\x00\xca\x00\xde\x00\xec\x00\xf5\x00\xf8\x01\x07\x01\x15
\x01 \x01+\x01>\x01L\x01R\x01U\x01`\x01o\x01\x87\x01\x90\x01\xb7\x01\xb9\x01\xc4\x01\xd9\x01\xf9\x02\x11\x02)\x02M\x02N\x02O\x02P\x02Q\x02R\x02S\x02V\x02W\x02[\x02b\x02d\x02{\x02\x8f\x02\xb6\x02\xb7\x02\xc0\x02\xd2\x04Z\x04c\x04{\x04\x88\
x04\x94\x04\xa1\x04\xa3\x04\xa8\x04\xb1\x04\xb9\x04\xc4\x04\xe7\x04\xfb\x05\x01\x05\t\x00\x00\x00\x00\x00\x00\x02\x01\x00\x00\x00\x00\x00\x00\x00F\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x12')
2023-09-05  13:46:35 DEBUG Sending data (Encrypted=5b00a5dd3815c8ae37844f490a0a04376d860712f56dd7e6047ba4dd57c9a302ba8bbd8114e50ceb7fe684f61c194a36fc44ae014f516e9a52dbb29d8e2c3c27bf81c0d248ad7a7e778a1c1ed10ee6bc99d826f7601f895471d4d021153
f340a50ef2e9f402daf784034dfafa7)
2023-09-05  13:46:35 DEBUG Received data (Data=0004fbd741051694fd4dd1caf865fd07a01d1df2999536f1c1be0992e5a11b4b82ef42656775d3ffd4d2a22b1281d3c14c8fb59d1ba0dd384c2f6ae9a879001125b6f4bc7d447de3da4c64641819bf2533f028668460bd7f7edb5639e264851
6859bbace771e26fade4ef9ea29570e17b9edcbf9ee13fab85197033693ae5d7349353ab4978aaa7effc8b1b8bac3ecfc188ed3a7bbb0e869eab1b6e464b4b6ace04fc06decd56ea210c3f91ea6c0101f78c1a7cedfad105c29157d30b467cb243c6af28cc0aa5ddbfcac2f6562029693490da37d349c4
d412ab38a26e5b7ccda0d9b40bd2b048a7e70d5ef7fa791525571ed0f4c18a7aad2b4d6ed894cdf7...)
2023-09-05  13:46:35 DEBUG Got message on event channel: HttpRequest(method='POST', path='/command', protocol='RTSP', version='1.0', headers={'CSeq': '8', 'Content-Length': '1470', 'Content-Type': 'application/x-apple-binary-plist'}, body
=b'bplist00\xd2\x01\x02\x03\x04TtypeUvalueZupdateInfo\xdf\x10\x18\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f%+&-./012%4567?@ABCDESpsiRvv_\x10\x14playbackCapabilities_\x10\x15canRe
cordScreenStream[statusFlags_\x10\x18keepAliveSendStatsAsBody_\x10\x0fprotocolVersionTname_\x10\x11volumeControlType]senderAddressXdeviceIDRpi^screenDemoMode]initialVolumeZfeaturesExZtxtAirPlay_\x10\x10supportedFormats]sourceVersionUmodel
RpkZmacAddress^osBuildVersion_\x10\x15receiverHDRCapabilityXfeatures_\x10$8FC8B5DE-55DC-4AB2-B424-160D366B62E6\x10\x02\xd5 !"#$%&&&&_\x10\x12supportsOfflineHLS_\x10\x1dsupportsUIForAudioOnlyContent_\x10\x15supportsInterstitials_\x10\x15su
2023-09-05  13:46:38 DEBUG Received: b'RTSP/1.0 200 OK\r\nDate: Tue, 05 Sep 2023 05:46:39 GMT\r\nContent-Length: 55\r\nContent-Type: application/x-apple-binary-plist\r\nServer: AirTunes/695.5.1\r\nCSeq: 110\r\n\r\nbplist00\xd1\x01\x02Wstr
eams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'
2023-09-05  13:46:38 DEBUG Got RTSP response: HttpResponse(protocol='RTSP', version='1.0', code=200, message='OK', headers={'Date': 'Tue, 05 Sep 2023 05:46:39 GMT', 'Content-Length': '55', 'Content-Type': 'application/x-apple-binary-plist
', 'Server': 'AirTunes/695.5.1', 'CSeq': '110'}, body=b'bplist00\xd1\x01\x02Wstreams\xa0\x08\x0b\x13\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14'):
2023-09-05  13:46:38 DEBUG Got heartbeat 107 (AirPlay:192.168.35.230)
postlund commented 10 months ago

Please be more thorough in your description, I'm not really sure what I'm looking at here. Exactly what are you doing and what are you expecting? Have you verified that you get the expected behavior in iOS?

simonwanghub commented 10 months ago

It's appletv4, I want to get playing status.

simonwanghub commented 10 months ago

use metadata.playing