SamDel / ChromeCast-Desktop-Audio-Streamer

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

Devices without multizone/groups (i.e. 1st generation devices) don't work properly [fixed in version 2.2.2] #44

Closed sn0skier closed 5 years ago

sn0skier commented 5 years ago

I added a device in the config file:

I don't get any errors in the log file, but no device appears in the Devices section of the GUI.

SamDel commented 5 years ago

The device is only added when the call to get the device information is successful.

Can you try if you can get the device information with the next url (replace 192.168.0.1 with your ip address): http://192.168.0.1:8008/setup/eureka_info

Errors are not logged when that call isn't successful.

sn0skier commented 5 years ago

I can get the device information at that address. Would you like me to post it here? I'm not sure if any of that information could compromise my privacy, but if you say it won't I trust you. Or I could email you the information? Thanks for your help.

SamDel commented 5 years ago

There's no need to post the information, it was a check to make sure the IP address is right. Can you try 2.2.1? (I found a bug in 2.2. Only devices that are part of a group were added.)

sn0skier commented 5 years ago

This worked!

Sorry it took me so long to test, but this fixed it. Thank you.

On Sat, Jun 1, 2019 at 10:59 PM SamDel notifications@github.com wrote:

There's no need to post the information, it was a check to make sure the IP address is right. Can you try 2.2.1 https://github.com/SamDel/ChromeCast-Desktop-Audio-Streamer/files/3244398/Setup.2.2.1.zip? (I found a bug in 2.2. Only devices that are part of a group were added.)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SamDel/ChromeCast-Desktop-Audio-Streamer/issues/44?email_source=notifications&email_token=AF4DGNZ3SVHALK33I76WGPLPYMZRFA5CNFSM4HSBGTZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWXMVAI#issuecomment-497994369, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4DGN7AYKKGIDQJRXELKQLPYMZRFANCNFSM4HSBGTZA .

SamDel commented 5 years ago

Great! Thanks for testing.

You probably never used groups on your device? Is there a multizone/groups element (in the eureka_info configuration from the device returns) for your setup?

image

sn0skier commented 5 years ago

When I copy the information from http://192.168.0.1:8008/setup/eureka_info?params=version,audio,name,build_info,detail,device_info,net,wifi,setup,settings,opt_in,opencast,multizone,proxy,night_mode_params,user_eq,room_equalizer&options=detail the only phrases with the word group or multizone in them are these: "multichannel_group_supported":false,"multizone_supported":false I don't know if this is because I have a first generation device or if that it the way it should be or if you are looking for other information. Let me know if you need anything else.

On Mon, Jun 3, 2019 at 10:12 AM SamDel notifications@github.com wrote:

Great! Thanks for testing.

You probably never used groups on your device? Is there a multizone/groups element (in the eureka_info configuration from the device returns) for your setup?

[image: image] https://user-images.githubusercontent.com/25846417/58808315-1882ae80-861a-11e9-8368-8be7fe2438e1.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SamDel/ChromeCast-Desktop-Audio-Streamer/issues/44?email_source=notifications&email_token=AF4DGN6XOZAIG6NCGJLT2PTPYURFLA5CNFSM4HSBGTZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWZQ4HA#issuecomment-498273820, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4DGNZP5PSVKBL6PJSI663PYURFLANCNFSM4HSBGTZA .

SamDel commented 5 years ago

I think the multizone configuration is only available in the newer versions of the device (not sure). The code was looking for it and skipped the device when it isn't there.

Thanks! I'll create a new 2.3 release later with support for devices that don't have the multizone element.

sn0skier commented 5 years ago

Great, I'm glad we could work this out together.

On Mon, Jun 3, 2019, 10:25 AM SamDel notifications@github.com wrote:

I think the multizone configuration is only available in the newer versions of the device (not sure). The code was looking for it and skipped the device when it isn't there.

Thanks! I'll create a new 2.3 release later with support for devices that don't have the multizone element.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SamDel/ChromeCast-Desktop-Audio-Streamer/issues/44?email_source=notifications&email_token=AF4DGN6QT3E7ZD5SKOZA5YTPYUSUDA5CNFSM4HSBGTZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWZSDOY#issuecomment-498278843, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4DGN223TAVNCIAL2VK3CDPYUSUDANCNFSM4HSBGTZA .

SamDel commented 5 years ago

Confirmed multizone is only for Chromecast 2nd Gen, Chromecast 3rd Gen, or Chromecast Ultra.

sn0skier commented 5 years ago

I'm getting an error still. Before I could click continue, but now it doesn't work. Here is the error message:

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at ChromeCast.Desktop.AudioStreamer.Application.Devices.StopGroups(IDevice deviceIn) at ChromeCast.Desktop.AudioStreamer.Application.Device.OnClickPlayStop() at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.7.3416.0 built by: NET472REL1LAST_B CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

ChromeCast.Desktop.AudioStreamer Assembly Version: 2.2.1.0 Win32 Version: 2.2.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/Desktop%20Audio%20Streamer/Desktop%20Audio%20Streamer/ChromeCast.Desktop.AudioStreamer.exe

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System Assembly Version: 4.0.0.0 Win32 Version: 4.7.3416.0 built by: NET472REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

Microsoft.VisualBasic Assembly Version: 10.0.0.0 Win32 Version: 14.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Runtime.Remoting Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll

Microsoft.Practices.Unity Assembly Version: 4.0.0.0 Win32 Version: 4.0.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/Desktop%20Audio%20Streamer/Desktop%20Audio%20Streamer/Microsoft.Practices.Unity.DLL

System.Runtime Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.dll

System.Threading Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Threading/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Threading.dll

System.Collections Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Collections/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Collections.dll

System.Reflection Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Reflection/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Reflection.dll

System.Linq Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Linq/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Linq.dll

System.Globalization Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Globalization/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Globalization.dll

System.Resources.ResourceManager Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Resources.ResourceManager/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Resources.ResourceManager.dll

System.Runtime.Extensions Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Extensions/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Extensions.dll

System.Linq.Expressions Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Linq.Expressions/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Linq.Expressions.dll

System.Reflection.Extensions Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Reflection.Extensions/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Reflection.Extensions.dll

Anonymously Hosted DynamicMethods Assembly Assembly Version: 0.0.0.0 Win32 Version: 4.7.3416.0 built by: NET472REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll

NAudio Assembly Version: 1.8.5.0 Win32 Version: 1.8.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/Desktop%20Audio%20Streamer/Desktop%20Audio%20Streamer/NAudio.DLL

ChromeCast.Desktop.AudioStreamer.resources Assembly Version: 2.2.1.0 Win32 Version: 2.2.1.0 CodeBase: file:///C:/Program%20Files%20(x86)/Desktop%20Audio%20Streamer/Desktop%20Audio%20Streamer/fr/ChromeCast.Desktop.AudioStreamer.resources.DLL

Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Net.Http Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

Newtonsoft.Json Assembly Version: 12.0.0.0 Win32 Version: 12.0.1.22727 CodeBase: file:///C:/Program%20Files%20(x86)/Desktop%20Audio%20Streamer/Desktop%20Audio%20Streamer/Newtonsoft.Json.DLL

Tmds.MDns Assembly Version: 0.7.0.0 Win32 Version: 0.7.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/Desktop%20Audio%20Streamer/Desktop%20Audio%20Streamer/Tmds.MDns.DLL

System.Numerics Assembly Version: 4.0.0.0 Win32 Version: 4.7.3056.0 built by: NET472REL1 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.Runtime.Serialization Assembly Version: 4.0.0.0 Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

CSCore Assembly Version: 1.2.1.2 Win32 Version: CodeBase: file:///C:/Program%20Files%20(x86)/Desktop%20Audio%20Streamer/Desktop%20Audio%20Streamer/CSCore.DLL

Google.ProtocolBuffers Assembly Version: 2.4.1.555 Win32 Version: 2.4.1.555 CodeBase: file:///C:/Program%20Files%20(x86)/Desktop%20Audio%20Streamer/Desktop%20Audio%20Streamer/Google.ProtocolBuffers.DLL

System.Web.Extensions Assembly Version: 4.0.0.0 Win32 Version: 4.7.3282.0 CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Web.Extensions/v4.0_4.0.0.0__31bf3856ad364e35/System.Web.Extensions.dll

System.Web Assembly Version: 4.0.0.0 Win32 Version: 4.7.3282.0 built by: NET472REL1LAST_B CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll

** JIT Debugging ** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.

For example:

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.

On Mon, Jun 3, 2019 at 10:35 AM SamDel notifications@github.com wrote:

Confirmed multizone is only for Chromecast 2nd Gen, Chromecast 3rd Gen, or Chromecast Ultra https://support.google.com/chromecast/thread/678426?hl=en.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SamDel/ChromeCast-Desktop-Audio-Streamer/issues/44?email_source=notifications&email_token=AF4DGN5H3LFUC4K66EC3VJDPYUT4XA5CNFSM4HSBGTZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWZTHPY#issuecomment-498283455, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4DGN7WK4RORH37UTVMWCDPYUT4XANCNFSM4HSBGTZA .

SamDel commented 5 years ago

Sorry, multizone is used on multiple places, should have checked. Can you try 2.2.2?

Thanks again.

sn0skier commented 5 years ago

That seems to have worked. No errors so far. I'll update if I get one.

Thanks again.

On Tue, Jun 4, 2019 at 2:32 AM SamDel notifications@github.com wrote:

Sorry, multizone is used on multiple places, should have checked. Can you try 2.2.2 https://github.com/SamDel/ChromeCast-Desktop-Audio-Streamer/files/3250833/Setup.2.2.2.zip ?

Thanks again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SamDel/ChromeCast-Desktop-Audio-Streamer/issues/44?email_source=notifications&email_token=AF4DGN7QADSNDM32XT4L3G3PYYEADA5CNFSM4HSBGTZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW3R5MI#issuecomment-498540209, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4DGN44CVL2ANPS2SHQG53PYYEADANCNFSM4HSBGTZA .

SamDel commented 5 years ago

Thanks for changing the title. No further issues?

I've published a 2.3 release with the fix.

sn0skier commented 5 years ago

No further issues.