[SOLVED] Chromecast goes offline when playsound is used

Hello,

I have the problem my chromecast goes to offline status when i try playing a mp3 via console command:“smarthome:audio play doorbell.mp3”. This happenes with my CC audio and my CC AV. I know there is allready a toppic on this. There the solution was removing the callback url from the binding.cfg. I have done this but it doesnt work for me. Tried removing the mention of callback url, tried leaving it empty but no result. Can anybody help on this? This is the trace output of the chromecast binding:

2019-02-07 17:47:33.683 [DEBUG] [ast.internal.ChromecastStatusUpdater] - MEDIA_STATUS null

==> /var/log/openhab2/events.log <==



2019-02-07 17:47:37.008 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: null

2019-02-07 17:47:37.013 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

2019-02-07 17:47:37.016 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.6 8009

2019-02-07 17:47:37.019 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:43.832 [DEBUG] [ast.internal.ChromecastStatusUpdater] - MEDIA_STATUS null

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:47.800 [DEBUG] [ast.internal.ChromecastStatusUpdater] - MEDIA_STATUS MediaStatus{activeTrackIds: <null>, mediaSessionId: 2, playbackRate: 1, playerState: IDLE, currentItemId: 2, currentTime: 0.000000, customData: <null>, loadingItemId: null, items: <null>, preloadedItemId: null, supportedMediaCommands: 274447, volume: Volume{level: 1.0, muted: false, increment: 0.05, stepInterval: 0.05000000074505806, controlType: null}, media: Media{url: /audio/0e862f6b-9860-4dbc-ab2d-812874c38541, contentType: audio/mpeg, duration: null}, repeatMode: REPEAT_OFF, idleReason: null}

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:47.814 [vent.ItemStateChangedEvent] - currentTime changed from UNDEF to 0.0

2019-02-07 17:47:47.917 [vent.ItemStateChangedEvent] - title changed from UNDEF to Notification

2019-02-07 17:47:47.922 [vent.ItemStateChangedEvent] - statustext changed from Default Media Receiver to Casting: Notification

==> /var/log/openhab2/openhab.log <==

2019-02-07 17:47:47.976 [DEBUG] [omecast.internal.ChromecastCommander] - Failed playing media: Unable to load media

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:47.982 [hingStatusInfoChangedEvent] - 'chromecast:chromecast:myCC' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Unable to load media

2019-02-07 17:47:48.006 [hingStatusInfoChangedEvent] - 'chromecast:chromecast:myCC' changed from OFFLINE (COMMUNICATION_ERROR): Unable to load media to ONLINE

2019-02-07 17:47:48.024 [vent.ItemStateChangedEvent] - statustext changed from Casting: Notification to Default Media Receiver

2019-02-07 17:47:54.179 [DEBUG] [ast.internal.ChromecastStatusUpdater] - MEDIA_STATUS MediaStatus{activeTrackIds: <null>, mediaSessionId: 2, playbackRate: 1, playerState: IDLE, currentItemId: 2, currentTime: 0.000000, customData: <null>, loadingItemId: null, items: <null>, preloadedItemId: null, supportedMediaCommands: 274447, volume: Volume{level: 1.0, muted: false, increment: 0.05, stepInterval: 0.05000000074505806, controlType: null}, media: Media{url: /audio/0e862f6b-9860-4dbc-ab2d-812874c38541, contentType: audio/mpeg, duration: null}, repeatMode: null, idleReason: ERROR}

2019-02-07 17:47:54.395 [DEBUG] [omecast.internal.ChromecastCommander] - Media player app stopped

2019-02-07 17:47:54.402 [DEBUG] [ast.internal.ChromecastEventReceiver] - Unhandled event type: java.lang.Object@4c8080

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:54.402 [vent.ItemStateChangedEvent] - appName changed from Default Media Receiver to UNDEF

2019-02-07 17:47:54.417 [vent.ItemStateChangedEvent] - appId changed from CC1AD845 to UNDEF

2019-02-07 17:47:54.421 [vent.ItemStateChangedEvent] - statustext changed from Default Media Receiver to UNDEF

2019-02-07 17:47:54.424 [vent.ItemStateChangedEvent] - idling changed from OFF to ON

==> /var/log/openhab2/openhab.log <==

2019-02-07 17:47:55.421 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

2019-02-07 17:47:55.423 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.6 8009

2019-02-07 17:47:55.426 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

==> /var/log/openhab2/events.log <==

2019-02-07 17:47:57.328 [vent.ItemStateChangedEvent] - appName changed from UNDEF to Backdrop

2019-02-07 17:47:57.358 [vent.ItemStateChangedEvent] - appId changed from UNDEF to E8C28D3C

2019-02-07 17:47:57.370 [vent.ItemStateChangedEvent] - statustext changed from UNDEF to 

2019-02-07 17:47:58.931 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: null

==> /var/log/openhab2/events.log <==


2019-02-07 17:48:17.052 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: null

2019-02-07 17:48:17.058 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

2019-02-07 17:48:17.062 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.6 8009

2019-02-07 17:48:17.066 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

==> /var/log/openhab2/events.log <==

2019-02-07 17:48:34.467 [DEBUG] [omecast.internal.ChromecastCommander] - Failed to request media status with a running app: Waiting for response timed out

==> /var/log/openhab2/events.log <==

2019-02-07 17:48:38.934 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: null

==> /var/log/openhab2/events.log <==

2019-02-07 17:48:56.974 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: null

2019-02-07 17:48:56.977 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

2019-02-07 17:48:56.981 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.6 8009

2019-02-07 17:48:56.983 [DEBUG] [overy.ChromecastDiscoveryParticipant] - Chromecast Type: Chromecast

Casting from phone works just fine.
Thanks

Ok seems like the problem lays with the default audiosink in openhab. Before i set CC audio as default in paperUI (and hit save :wink:) but when using command :“smarthome:audio play doorbell.mp3” in the console it didn’t play. Now i specified the audiosink in the command like: “smarthome:audio play chromecast:audio:myCC doorbell.mp3” and now it did play. Strange