SamDel / ChromeCast-Desktop-Audio-Streamer

Stream the sound of your desktop to your Chromecast Audio device
MIT License
412 stars 30 forks source link

Connecting but no playback #62

Closed mukkel185 closed 4 years ago

mukkel185 commented 4 years ago

Hey Guys,

maybe you have an idea: the program finds an connects to my chromecast 3, the device window turns green and says "buffering 0:00" but there is no sound. After a while it returns to idle again.

Thanks in advance for your help and kudos for SamDel and his efforts :) That's what the log says:

Add IP4 addresses: 192.168.178.23 - 127.0.0.1

Set size, height: 550 width: 850

Discovered device: Schuppen 192.168.178.34:8009 null

out [21:22:29][192.168.178.34:8009] [NotConnected]: {"type":"CONNECT"}

out [21:22:30][192.168.178.34:8009] [NotConnected]: {"requestId":1,"type":"GET_STATUS"}

in [21:22:30] [192.168.178.34:8009] [NotConnected]: {"type":"CLOSE"}

[21:22:30] [192.168.178.34:8009] ResumePlaying

out [21:22:32][192.168.178.34:8009] [NotConnected]: {"type":"CONNECT"}

out [21:22:32][192.168.178.34:8009] [NotConnected]: {"requestId":2,"type":"GET_STATUS"}

in [21:22:32] [192.168.178.34:8009] [NotConnected]: {"requestId":2,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"58b6685b-b788-479b-82b3-904bd0f6a52f","statusText":"Default Media Receiver","transportId":"58b6685b-b788-479b-82b3-904bd0f6a52f"}],"userEq":{},"volume":{"controlType":"attenuation","level":1.0,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}

out [21:22:34][192.168.178.34:8009] [LaunchingApplication]: {"type":"CONNECT"}

out [21:22:34][192.168.178.34:8009] [LaunchingApplication]: {"appId":"CC1AD845","requestId":3,"type":"LAUNCH"}

in [21:22:34] [192.168.178.34:8009] [LaunchingApplication]: {"requestId":0,"status":{"userEq":{},"volume":{"controlType":"attenuation","level":1.0,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}

in [21:22:35] [192.168.178.34:8009] [LaunchingApplication]: {"requestId":3,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"457debe9-8aca-4c06-9e6a-fe765c46eec3","statusText":"Default Media Receiver","transportId":"457debe9-8aca-4c06-9e6a-fe765c46eec3"}],"userEq":{},"volume":{"controlType":"attenuation","level":1.0,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}

out [21:22:35][192.168.178.34:8009] [LaunchedApplication]: {"type":"CONNECT"}

out [21:22:35][192.168.178.34:8009] [LoadingMedia]: {"autoplay":true,"currentTime":0,"activeTrackIds":[],"repeatMode":"REPEAT_OFF","media":{"contentId":"http://192.168.178.23:52596/","contentType":"audio/wav","streamType":"BUFFERED","metadata":{"type":0,"metadataType":0,"title":"Desktop Audio Streamer","images":[]}},"requestId":1,"type":"LOAD"}

in [21:22:35] [192.168.178.34:8009] [LoadingMedia]: {"type":"MEDIA_STATUS","status":[],"requestId":0}

in [21:22:35] [192.168.178.34:8009] [LoadingMedia]: {"type":"MEDIA_STATUS","status":[{"mediaSessionId":1,"playbackRate":1,"playerState":"IDLE","currentTime":0,"supportedMediaCommands":274447,"volume":{"level":1,"muted":false},"activeTrackIds":[],"media":{"contentId":"http://192.168.178.23:52596/","contentType":"audio/wav","streamType":"BUFFERED","metadata":{"type":0,"metadataType":0,"title":"Desktop Audio Streamer","images":[]}},"currentItemId":1,"extendedStatus":{"playerState":"LOADING","media":{"contentId":"http://192.168.178.23:52596/","contentType":"audio/wav","streamType":"BUFFERED","metadata":{"type":0,"metadataType":0,"title":"Desktop Audio Streamer","images":[]}}},"repeatMode":"REPEAT_OFF"}],"requestId":0}

in [21:22:35] [192.168.178.34:8009] [Idle]: {"requestId":0,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"457debe9-8aca-4c06-9e6a-fe765c46eec3","statusText":"Casting: Desktop Audio Streamer","transportId":"457debe9-8aca-4c06-9e6a-fe765c46eec3"}],"userEq":{},"volume":{"controlType":"attenuation","level":1.0,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}

in [21:22:36] [192.168.178.34:8009] [Idle]: {"type":"MEDIA_STATUS","status":[{"mediaSessionId":1,"playbackRate":1,"playerState":"BUFFERING","currentTime":0,"supportedMediaCommands":274447,"volume":{"level":1,"muted":false},"activeTrackIds":[],"currentItemId":1,"repeatMode":"REPEAT_OFF"}],"requestId":0}

out [21:22:44][192.168.178.34:8009] [Buffering]: {"requestId":4,"type":"GET_STATUS"}

out [21:22:59][192.168.178.34:8009] [Buffering]: {"requestId":5,"type":"GET_STATUS"}

out [21:23:14][192.168.178.34:8009] [Buffering]: {"requestId":6,"type":"GET_STATUS"}

out [21:23:29][192.168.178.34:8009] [Buffering]: {"requestId":7,"type":"GET_STATUS"}

out [21:23:34][192.168.178.34:8009] [Buffering]: {"volume":{"level":0.95},"requestId":8,"type":"SET_VOLUME"}

in [21:23:34] [192.168.178.34:8009] [Buffering]: {"device":{"capabilities":196613,"deviceId":"c94524c6-829c-86aa-345f-705f5604cfdc","name":"Schuppen","volume":{"level":0.949999988079071,"muted":false}},"requestId":0,"type":"DEVICE_UPDATED"}

in [21:23:34] [192.168.178.34:8009] [Buffering]: {"requestId":8,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"457debe9-8aca-4c06-9e6a-fe765c46eec3","statusText":"Casting: Desktop Audio Streamer","transportId":"457debe9-8aca-4c06-9e6a-fe765c46eec3"}],"userEq":{},"volume":{"controlType":"attenuation","level":0.949999988079071,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}

out [21:23:44][192.168.178.34:8009] [Buffering]: {"requestId":9,"type":"GET_STATUS"}

out [21:23:59][192.168.178.34:8009] [Buffering]: {"requestId":10,"type":"GET_STATUS"}

out [21:24:14][192.168.178.34:8009] [Buffering]: {"requestId":11,"type":"GET_STATUS"}

out [21:24:29][192.168.178.34:8009] [Buffering]: {"requestId":12,"type":"GET_STATUS"}

in [21:24:43] [192.168.178.34:8009] [Buffering]: {"requestId":1,"type":"LOAD_FAILED","detailedErrorCode":104}

in [21:24:43] [192.168.178.34:8009] [LoadFailed]: {"type":"MEDIA_STATUS","status":[],"requestId":5}

in [21:24:43] [192.168.178.34:8009] [LoadFailed]: {"type":"MEDIA_STATUS","status":[],"requestId":6}

in [21:24:43] [192.168.178.34:8009] [LoadFailed]: {"type":"MEDIA_STATUS","status":[],"requestId":7}

in [21:24:43] [192.168.178.34:8009] [LoadFailed]: {"type":"MEDIA_STATUS","status":[],"requestId":9}

in [21:24:43] [192.168.178.34:8009] [LoadFailed]: {"type":"MEDIA_STATUS","status":[],"requestId":10}

in [21:24:43] [192.168.178.34:8009] [LoadFailed]: {"type":"MEDIA_STATUS","status":[],"requestId":11}

in [21:24:43] [192.168.178.34:8009] [LoadFailed]: {"type":"MEDIA_STATUS","status":[],"requestId":12}

in [21:24:43] [192.168.178.34:8009] [LoadFailed]: {"type":"MEDIA_STATUS","status":[{"mediaSessionId":1,"playbackRate":1,"playerState":"IDLE","currentTime":0,"supportedMediaCommands":274447,"volume":{"level":1,"muted":false},"media":{"contentId":"http://192.168.178.23:52596/","contentType":"audio/wav","streamType":"BUFFERED","metadata":{"type":0,"metadataType":0,"title":"Desktop Audio Streamer","images":[]},"breakClips":[],"breaks":[]},"currentItemId":1,"idleReason":"ERROR"}],"requestId":4}

in [21:24:43] [192.168.178.34:8009] [Idle]: {"requestId":0,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"457debe9-8aca-4c06-9e6a-fe765c46eec3","statusText":"Default Media Receiver","transportId":"457debe9-8aca-4c06-9e6a-fe765c46eec3"}],"userEq":{},"volume":{"controlType":"attenuation","level":0.949999988079071,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}

out [21:24:44][192.168.178.34:8009] [Idle]: {"requestId":13,"type":"GET_STATUS"}

[21:24:44] [192.168.178.34:8009] ResumePlaying

in [21:24:44] [192.168.178.34:8009] [Idle]: {"requestId":13,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"457debe9-8aca-4c06-9e6a-fe765c46eec3","statusText":"Default Media Receiver","transportId":"457debe9-8aca-4c06-9e6a-fe765c46eec3"}],"userEq":{},"volume":{"controlType":"attenuation","level":0.949999988079071,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}

out [21:24:48][192.168.178.34:8009] [LaunchingApplication]: {"type":"CONNECT"}

out [21:24:48][192.168.178.34:8009] [LaunchingApplication]: {"appId":"CC1AD845","requestId":14,"type":"LAUNCH"}

in [21:24:48] [192.168.178.34:8009] [LaunchingApplication]: {"requestId":0,"status":{"userEq":{},"volume":{"controlType":"attenuation","level":0.949999988079071,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}

in [21:24:48] [192.168.178.34:8009] [LaunchingApplication]: {"type":"CLOSE"}

in [21:24:49] [192.168.178.34:8009] [Closed]: {"requestId":14,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"bf9e764c-fd92-4e44-a0d3-8432570227ef","statusText":"Default Media Receiver","transportId":"bf9e764c-fd92-4e44-a0d3-8432570227ef"}],"userEq":{},"volume":{"controlType":"attenuation","level":0.949999988079071,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}

out [21:24:50][192.168.178.34:8009] [Connected]: {"requestId":15,"type":"GET_STATUS"}

in [21:24:50] [192.168.178.34:8009] [Connected]: {"requestId":15,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"bf9e764c-fd92-4e44-a0d3-8432570227ef","statusText":"Default Media Receiver","transportId":"bf9e764c-fd92-4e44-a0d3-8432570227ef"}],"userEq":{},"volume":{"controlType":"attenuation","level":0.949999988079071,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}

out [21:24:59][192.168.178.34:8009] [Connected]: {"requestId":16,"type":"GET_STATUS"}

in [21:24:59] [192.168.178.34:8009] [Connected]: {"requestId":16,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"bf9e764c-fd92-4e44-a0d3-8432570227ef","statusText":"Default Media Receiver","transportId":"bf9e764c-fd92-4e44-a0d3-8432570227ef"}],"userEq":{},"volume":{"controlType":"attenuation","level":0.949999988079071,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}

out [21:25:14][192.168.178.34:8009] [Connected]: {"requestId":17,"type":"GET_STATUS"}

in [21:25:14] [192.168.178.34:8009] [Connected]: {"requestId":17,"status":{"applications":[{"appId":"CC1AD845","displayName":"Default Media Receiver","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.cast.debugoverlay"},{"name":"urn:x-cast:com.google.cast.broadcast"},{"name":"urn:x-cast:com.google.cast.media"}],"sessionId":"bf9e764c-fd92-4e44-a0d3-8432570227ef","statusText":"Default Media Receiver","transportId":"bf9e764c-fd92-4e44-a0d3-8432570227ef"}],"userEq":{},"volume":{"controlType":"attenuation","level":0.949999988079071,"muted":false,"stepInterval":0.05000000074505806}},"type":"RECEIVER_STATUS"}
SamDel commented 4 years ago

Hey @mukkel185,

It looks like the firewall is blocking incoming connections from the Chromecast device. And did you check the other hints from the wiki?

Chromecast device doesn't start streaming

  • Make sure your desktop plays music.
  • Try switching the recording device.
  • Try switching the IP address.
  • Check if the firewall is not blocking incoming connections for 'ChromeCast.Desktop.AudioStreamer'.

Let me know!

FA-Bubba commented 4 years ago

I'm having a similar issue... After about 3 weeks of FLAWLESS play, DAS acted-up over the past few days, with Speaker Groups dropping-out, and no streaming, even though the display indicated it was playing.

Version 2.5.2 on Windows 10 Professional w/ 16 GB RAM...

I closed DAS and restarted it. All devices except one were found and populated into the Device Box. I tried 'Scan Again...' 3 times, but the Device List did not change. I tried to play two Speaker Groups ('First Floor Speakers' & 'Second Floor Speakers'); First Floor failed to load; Second Floor loaded, and indicated "Playing", but there was no audio. At this point, I dumped the Log (attached), and checked all LAN connections -- All speakers were above 90% (screen shot attached).

I unloaded everything, and rebooted the PC, and tried DAS again. This time, it loaded very slowly, and eventually found all but TWO Devices, but would not stream any audio (another Log also attached).

I'm at a loss to fathom what is going on... It is possible that a Windows 10 update may have be a factor; most recent updates on 11/16 (KB4524570) & 11/13 (KB4524569)

Log-2019-11-22-v2-5-2-DropOuts.zip

SamDel commented 4 years ago

It's a different issue, but I'm also having discovery problems. I thought it was due to my new router, but maybe it's an update then...

As a temporary workaround you can add the IP of the missing devices in 'ChromeCast.Desktop.AudioStreamer.exe.config' (wiki). I'll let you know when I found something!

SamDel commented 4 years ago

After installing the latest update the discovery works again for me.

Updates installed:

mukkel185 commented 4 years ago

@SamDel: Sorry for letting you wait. It was indeed a firewall problem - windows somehow changed the permissions besides i already allowed the streamer beforehand. Don't ask me why. It's working without any problems now - thank you very much for your help :)

PS: The sound is lacking some deeper frequencies but that seems not to be caused by the Audio-Streamer

SamDel commented 4 years ago

Thanks. You can try changing the stream format to 'Wav'!

mukkel185 commented 4 years ago

Yeah i tried that but nevertheless got no bass. I suspect my crappy laptop ^^

FA-Bubba commented 4 years ago

RE: "As a temporary workaround you can add the IP of the missing devices in 'ChromeCast.Desktop.AudioStreamer.exe.config' (wiki). "

With DHCP, IP addresses may not be static; is there a way to use MAC Addresses instead?

FA-Bubba commented 4 years ago

I ran Windows Update, and there was another update available. After installing it, everything seems back to normal.

Thanks!

SamDel commented 4 years ago

@mukkel185 : I don't know what happens with the bass, the application doesn't filter the audio from the laptop's sound card. @FA-Bubba : Nice that it works again!

I'm closing the one.