TroyFernandes / MusicBeeChromecast

Adds Cast functionality to MusicBee
36 stars 3 forks source link

ChromeCast project not included #7

Closed sietsevdschoot closed 3 years ago

sietsevdschoot commented 3 years ago

Hi Troy,

Thanks for your work! After installing the plugin according to instructions;

Check Status -> Server Status: Not running. No popups or error messages during the process.

When i clone the solution to have a look. I get the following error on the ChromeCast project.

C:\dev\merged\cc\GoogleCast.csproj : error : The project file 'C:\dev\merged\cc\GoogleCast.csproj' has been moved, renamed or is not on your computer.

Best regards,

Sietse

TroyFernandes commented 3 years ago

I haven't actually put in my modified version of the GoogleCast API in the project repo, which is why you're getting that error. I've been meaning to add it and will do it later today.

Also, just to confirm. Are you able to get it working by using the files in given in the github release rather than building the project on your own?

sietsevdschoot commented 3 years ago

Ahh thanks, that would be helpful.

Yeah, these were the results of the latest release which was from this week.

On Fri, Oct 30, 2020, 13:48 Troy Fernandes notifications@github.com wrote:

I haven't actually put in my modified version of the GoogleCast API in the project repo, which is why you're getting that error. I've been meaning to add it and will do it later today.

Also, just to confirm. Are you able to get it working by using the files in given in the github release rather than building the project on your own?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TroyFernandes/MusicBeeChromecast/issues/7#issuecomment-719532344, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFPTDQHDW3QW6BTFLRCUETSNKYYZANCNFSM4TE4BAUQ .

TroyFernandes commented 3 years ago

I added the API to the repo right now

TroyFernandes commented 3 years ago

Also, the API doesn't report that many errors while connecting to the Chromecast due to the nature of how Google set up their process (It just times out), but I put error messages when making the webserver so if you're not experiencing errors when trying to connect and musicbee isn't hanging up, there might be something else going on.

Can you take a look at this video and just make sure you're following the same process? Setup

Note: In this video, the beginning of me going to Edit > Edit Preferences -> Plugins -> musicbee chromecast was cutoff

Let me know how it goes. Thanks!

sietsevdschoot commented 3 years ago

Hi Troy,

Looking around in the code, I found my problem lies in the DeviceLocator which tries to list all devices. On my laptop it can't find any chromecast devices. I created a unitTest and played around with increasing timeout and retries for the ZeroconfResolver. That didn't improve anything. So i wanted to validate this finding by checking it with ChromeCast App for windows.

The results at this point:

[OK] Android phone -> ChromeCast [OK] Windows 10 laptop, Chrome browser cast Tab -> ChromeCast [FAIL] Windows 10 laptop, ChromeCast App (Can't find device) [FAIL] Windows 10 laptop, DeviceLocator.cs (No devices found)

The ChromeCast is connected by LAN cable. My laptop is connected using wifi.

TroyFernandes commented 3 years ago

I doubt the LAN cable would be a problem so I would rule that out. Also I know that chrome does a special implementation for their casting.

The only code changes I've made to the cast api was post-connection stuff when playing. Nothing regarding connecting/device location. You can maybe try looking at the repos I linked at the bottom of the readme since those repo's have sample apps you can try. I'm not too sure otherwise why it wouldn't be picking up the devices. Maybe something with your firewall?

sietsevdschoot commented 3 years ago

Thanks for tracking this. The issue magically resolved itself today after playing a youtube video cast from my phone on my ChromeCast first.