hassio-addons / addon-aircast

AirCast - Home Assistant Community Add-ons
https://addons.community
MIT License
306 stars 18 forks source link

Unable to play audio on chromecast devices #168

Closed rtmlp closed 1 year ago

rtmlp commented 1 year ago

Problem/Motivation

I am unable to play audio on any chromecast speaker. I can see them as speakers on the iPhone and can change the volume. However, I am unable to play the song on the speaker

Expected behavior

By playing song on the iPhone and selecting chromecast device, the audio should be routed through chromecast.

Actual behavior

Right now, I can see that music player is playing the song. However I can't hear anything on any of the speaker

image

logs

Audio-Jack-Status: connected; type=analog

CSeq: 8

[17:09:17.789004] raop_cb:201 [0x1977f40]: Play
[17:09:17.938103] CastConnect:239 [0x1977f40]: SSL connection opened [0x7f1c1c037350]
[17:09:17.938181] SendCastMessage:124 [0x7f1c1c037350]: Cast sending: {"type":"CONNECT"}
[17:09:17.938296] CastLoad:149 [0x1977f40]: Queuing LOAD
[17:09:17.938318] CastSimple:184 [0x1977f40]: Queuing PLAY
[17:09:17.938328] CastSetDeviceVolume:299 [0x1977f40]: Queuing SET_VOLUME
[17:09:18.001960] SendCastMessage:124 [0x7f1c1c037350]: Cast sending: {"type":"LAUNCH","requestId":1,"appId":"CC1AD845"}
[17:09:18.002017] CastSocketThread:618 [0x1977f40]: Launching receiver 1
[17:09:18.270547] CastSocketThread:590 [0x1977f40]: type:RECEIVER_STATUS (id:1)
[17:09:18.270593] CastSocketThread:646 [0x1977f40]: Receiver launched
[17:09:18.270811] SendCastMessage:124 [0x7f1c1c037350]: Cast sending: {"type":"CONNECT","origin":{}}
[17:09:18.270864] SendCastMessage:124 [0x7f1c1c037350]: Cast sending: {"type":"SET_VOLUME","requestId":2,"volume":{"level":0.3333}}
[17:09:18.270912] SendCastMessage:124 [0x7f1c1c037350]: Cast sending: {"type":"SET_VOLUME","requestId":3,"volume":{"muted":false}}
[17:09:18.270922] ProcessQueue:446 [0x1977f40]: Processing VOLUME (id:3)
[17:09:18.380446] CastSocketThread:590 [0x1977f40]: type:MULTIZONE_STATUS (id:0)
[17:09:18.453843] search_remote_cb:604 [0x7f1c1c039640]: found ActiveRemote for ACF4192A76DACC66 at 10.20.10.84:49289
[17:09:18.577917] CastSocketThread:590 [0x1977f40]: type:DEVICE_UPDATED (id:0)
[17:09:18.685977] CastSocketThread:590 [0x1977f40]: type:RECEIVER_STATUS (id:3)
[17:09:18.686032] ProcessQueue:472 [0x1977f40]: Processing LOAD (id:4)
[17:09:18.686340] SendCastMessage:124 [0x7f1c1c037350]: Cast sending: {
 "type": "LOAD",
 "requestId": 4,
 "sessionId": "6c90c331-2c28-4a69-bb7d-01e56f661e58",
 "currentTime": 0.0,
 "autoplay": false,
 "media": {
  "contentId": "http://10.20.10.189:55067/stream-0",
  "streamType": "BUFFERED",
  "contentType": "audio/flac"
 }
}
[17:09:18.689159] CastSocketThread:590 [0x1977f40]: type:RECEIVER_STATUS (id:2)
[17:09:18.908377] CastSocketThread:587 [0x1977f40]: type:MEDIA_STATUS (id:0) (null)
[17:09:19.288411] CastSocketThread:587 [0x1977f40]: type:MEDIA_STATUS (id:0) IDLE
[17:09:19.288527] CastSocketThread:590 [0x1977f40]: type:MULTIZONE_STATUS (id:0)
[17:09:19.389935] mDNSsearchCallback:381 ----------------- round ------------------
[17:09:19.391394] mDNSsearchCallback:384 [ACTIVE] host 10.20.10.1, srv 10.20.40.180, name Google-Home-f151680db7bdb957ca76523e1a6234a9._googlecast._tcp.local 
[17:09:19.391427] mDNSsearchCallback:516 Updating configuration /config/aircast.xml
[17:09:19.392154] mDNSsearchCallback:381 ----------------- round ------------------
[17:09:19.392180] mDNSsearchCallback:384 [ACTIVE] host 172.30.32.1, srv 10.20.40.180, name Google-Home-f151680db7bdb957ca76523e1a6234a9._googlecast._tcp.local 
[17:09:19.392193] mDNSsearchCallback:516 Updating configuration /config/aircast.xml
[17:09:19.647270] rtp_thread_func:738 [0x7f1c100051a0]: sync packet rtp_latency:727359844 rtp:727437019 remote ntp:83aa809cc488effe, local time 4233714201(now: 4233714207)
[17:09:19.647323] rtp_request_timing:834 [0x7f1c100051a0]: timing request now:4233714207 (port: 49659)
[17:09:19.652201] rtp_thread_func:814 [0x7f1c100051a0]: Timing references local:4233714207, remote: 83aa809cc6025cad (delta : -1, sum : -3, adjust : 0, gaps :  0)
[17:09:19.660662] http_parse_simple:709 sock: 12, received RTP-Info: rtptime=727349750
[17:09:19.660893] http_parse_simple:709 sock: 12, received Content-Length: 76670
[17:09:19.661078] http_parse_simple:709 sock: 12, received Content-Type: image/jpeg
[17:09:19.661162] http_parse_simple:709 sock: 12, received CSeq: 9
[17:09:19.661344] http_parse_simple:709 sock: 12, received DACP-ID: ACF4192A76DACC66
[17:09:19.661533] http_parse_simple:709 sock: 12, received Active-Remote: 2924103712
[17:09:19.661684] http_parse_simple:709 sock: 12, received User-Agent: AirPlay/675.4.1
[17:09:19.673635] handle_rtsp:363 [0x7f1c1c039640]: received SET_PARAMETER
[17:09:19.673853] handle_rtsp:562 [0x7f1c1c039640]: responding:
RTSP/1.0 200 OK

Audio-Jack-Status: connected; type=analog

CSeq: 9

[17:09:19.676762] http_parse_simple:709 sock: 12, received RTP-Info: rtptime=727351862
[17:09:19.676903] http_parse_simple:709 sock: 12, received Content-Length: 40
[17:09:19.677083] http_parse_simple:709 sock: 12, received Content-Type: text/parameters
[17:09:19.677154] http_parse_simple:709 sock: 12, received CSeq: 10
[17:09:19.677326] http_parse_simple:709 sock: 12, received DACP-ID: ACF4192A76DACC66
[17:09:19.677481] http_parse_simple:709 sock: 12, received Active-Remote: 2924103712
[17:09:19.677639] http_parse_simple:709 sock: 12, received User-Agent: AirPlay/675.4.1
[17:09:19.677712] handle_rtsp:363 [0x7f1c1c039640]: received SET_PARAMETER
[17:09:19.677947] handle_rtsp:562 [0x7f1c1c039640]: responding:
RTSP/1.0 200 OK

Audio-Jack-Status: connected; type=analog

CSeq: 10

[17:09:19.681997] http_parse_simple:709 sock: 12, received RTP-Info: rtptime=727351862
[17:09:19.682313] http_parse_simple:709 sock: 12, received Content-Length: 198
[17:09:19.682715] http_parse_simple:709 sock: 12, received Content-Type: application/x-dmap-tagged
[17:09:19.682916] http_parse_simple:709 sock: 12, received CSeq: 11
[17:09:19.683130] http_parse_simple:709 sock: 12, received DACP-ID: ACF4192A76DACC66
[17:09:19.683444] http_parse_simple:709 sock: 12, received Active-Remote: 2924103712
[17:09:19.683723] http_parse_simple:709 sock: 12, received User-Agent: AirPlay/675.4.1
[17:09:19.683758] handle_rtsp:363 [0x7f1c1c039640]: received SET_PARAMETER
[17:09:19.683785] handle_rtsp:544 [0x7f1c1c039640]: received metadata
    artist: Pritam & KKascp
    album:  Love Aaj Kal (Original Motion Picture Soundtrack)asar
    title:  Aur Tanhaastn
[17:09:19.684110] handle_rtsp:562 [0x7f1c1c039640]: responding:
RTSP/1.0 200 OK

Audio-Jack-Status: connected; type=analog

CSeq: 11

[17:09:19.699742] http_parse_simple:709 sock: 12, received CSeq: 12
[17:09:19.700324] http_parse_simple:709 sock: 12, received DACP-ID: ACF4192A76DACC66
[17:09:19.700541] http_parse_simple:709 sock: 12, received Active-Remote: 2924103712
[17:09:19.700793] http_parse_simple:709 sock: 12, received User-Agent: AirPlay/675.4.1
[17:09:20.241343] CastSocketThread:587 [0x1977f40]: type:MEDIA_STATUS (id:0) BUFFERING
[17:09:20.647394] rtp_thread_func:738 [0x7f1c100051a0]: sync packet rtp_latency:727403982 rtp:727481157 remote ntp:83aa809dc4c16211, local time 4233715202(now: 4233715207)
a0zzy commented 1 year ago

+1 Same issue

EdgeCon commented 1 year ago

+1 Same Issue here too. I press the volume button on my iPhone and i can hear the Google Home speaker click as it adjusts the volume. However, I am unable to hear any music or audio.

Attached is a screenshot of my logs. 2023-04-20 18_25_08-Window

a0zzy commented 1 year ago

Issue is gone, just started working

rtmlp commented 1 year ago

Did you do any changes @CleverCarpet or did it just start working for you ?

a0zzy commented 1 year ago

It just started working

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!