getmusicbee.com

MusicBee & Add-Ons => Customizations => Plugins => Topic started by: TRoJAnV on January 03, 2020, 02:54:52 AM

Title: Musicbee Chromecast Plugin
Post by: TRoJAnV on January 03, 2020, 02:54:52 AM
Hey,

I quickly made a plugin allowing you to cast music from Musicbee to a chromecast enabled device. The functionality is quite barebones, but was made in mind to just let Musicbee act as the controller and just send songs over.

https://github.com/TroyFernandes/MusicBeeChromecast

Please read the Setup carefully as there's some important info to note about the pre-requisites to make this plugin work properly.

I originally intended to not post this plugin as I won't really work on this further, but I'm posting it since it can be useful to someone and I encourage anyone to simply fork the repo and develop it further if you'd like.

New update: Please look at post #21
Title: Re: Musicbee Chromecast Plugin
Post by: Steven on January 03, 2020, 07:55:18 AM
Thanks for this. I am actually 3/4 the way through doing a chromecast plugin as well but will have a look at what you have done
Title: Re: Musicbee Chromecast Plugin
Post by: alec.tron on January 03, 2020, 09:43:46 AM
Neato, looking forward to what comes out of this.
Churs.
c.
Title: Re: Musicbee Chromecast Plugin
Post by: TRoJAnV on January 03, 2020, 09:48:47 PM
Thanks for this. I am actually 3/4 the way through doing a chromecast plugin as well but will have a look at what you have done

I'd love to see chromecast get some first party integration!

I'm not sure which chromecast library you are using, but I've tried SharpCast, SharpCaster, and GoogleCast. I found GoogleCast to work the best/reliably.

Someone also made a fork implementing a Queue system which sounds quite promising: https://github.com/MattMckenzy/GoogleCast
Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on March 25, 2020, 09:19:52 PM
I couldn't find any release at github

Could someone post a link, please. Would be awesome to have it working

Thanks
Martin
Title: Re: Musicbee Chromecast Plugin
Post by: phred on March 26, 2020, 03:04:16 AM
Go to the link in the first post > click on "3 releases" (above the green line) > Beta Release V3 > MB_Chromecast.zip
Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on March 26, 2020, 06:48:14 AM
Big thanks. Don't know why I didn't see it before. /M
Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on March 28, 2020, 02:53:13 PM
Hi again

Tried to make it work, but didn't. Anyone that might be able to help out?

I followed the 3 steps in the setup instructions.

But when I inserted the text "netsh http add urlacl url=http://*:8080/ user=Everyone" in cmd prompt and hit Enter, I got the error message:

"Create SDDL failed, Error: 1332
 Felaktig parameter. (*swedish for incorrect parameter)"

So what did I do wrong?

I continued with the other steps. When I hit the created Chromecast button, I get the error message:

"An exception error has occurred for the target for an activation"
followed by the message:
"Error starting the webserver. Webserver exception."

When looking the Chromecast status in MB, it just says:

"Chromecast Connection: NOT CONNECTED
Library Set: OK
Server Running: NOT RUNNING"

I suppose I started to get it wrong in the cmd prompt, but why?

Please help



Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on March 30, 2020, 09:53:37 AM
I now solved one problem

Since I am running MB in Swedish, I needed to change "Everyone" to "Alla" (Swedish for Everyone). Then cmd accepted the phrase.

Everything went fine. I connect to the Chromecast and it shows a little blue chromcast icon on my tv. But when playing music there is no sound on my tv speakers (or connected hifi system). When starting the music on MB, the chromecast icon on the TV change to a moving circle, like it's waiting for something. I can see that MB is playing the file and the soundwave is changing. So it's probably trying to send sound through through the network to the chromecast. And the sound doesn't get through. After one minute the circle icon change to the blue Chromecast icon again. Sort of connected and ready. The MB is still playing, but no sound on my laptop neither. When I choose Disconnct from Chromecast, MB stops playing the song.

EDIT: When  pressing the Chromecast button, the volume of MB goes down to zero. That's why I didn't hear it on my laptop. So even though the icon change on the TV to moving circle when I start the music, like MB is trying to send soemthing, it's play the sound on my laptop. Since I got the Chromecast blue icon when connecting, I suppose the MB connected, which also the Status shows. Just that it doesn't get the sound through when starting a song. 

So MB sends the music to Chromecast, but the sound doesn't get through

Checking the chromecast status in MB everything is OK.

Chromecast Connection: OK
Library Set: OK
Server Running: OK

I tried the troubleshooting nr. 2 check, but I don't find the files on my browser.

"If you hear the connection sound, but no music is playing, you most likely have an issue with your port forwarding on the webserver. A good tip to try is after connecting to a chromecast, go on your phone and enter in a browser the <machines IP>:<Port#> e.g 192.168.1.27:8080. If you're able to see the files, then the chromecast will be able to as well."


So, please, anyone knows what's wrong? Everything is fine, but no sound...
Title: Re: Musicbee Chromecast Plugin
Post by: Steven on March 30, 2020, 10:00:17 AM
if you dont get a response from the plugin author, i am creating an official plugin but i havent been able to spend much time on it so it might be a few weeks off
Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on March 30, 2020, 10:31:35 AM
Wow, that's great. Now I have done everything my IT skills allow me to do. I'm learning by doing, so it always take a while to troubleshooting things, but I don't think I'll manage this.

So I will definitely look out for yours. Will you put it somewhere?
Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on March 30, 2020, 10:35:58 AM
I posted a question on the his youtube video for the plugin. Don't know his alias here.
Title: Re: Musicbee Chromecast Plugin
Post by: phred on March 30, 2020, 01:34:43 PM
I posted a question on the his youtube video for the plugin. Don't know his alias here.
Look at the first post in this thread.
Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on March 30, 2020, 02:22:03 PM
Now I feel like an idiot. Of course, he started the thread. Thanks 😊
Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on April 13, 2020, 07:52:04 AM
Finally I managed it to work by creating a rule for it in the firewall. With some help from the builder. Thanks.

The only strange thing was also that the sound didn't start in tv (and external receiver speakers) until I played next song. And also that after a few songs the sound disappears from the TV. But checking status, the chromecast is still connected.

How is your plug in coming along, Steven?
Title: Re: Musicbee Chromecast Plugin
Post by: catfishbear on July 05, 2020, 12:24:12 AM
This is doing my head in. I just can't figure it out.  :-\

I've set it all up according to the instructions. Using port 8081, I configured port forwarding in the router, firewall rule on desktop, the correct acls, etc.  
The app shows:
Chromecast Connection: OK
Library Set: OK
Server Running: OK
I can connect to the web server on my phone and see the index of my library but no music! I have 5 different Chromecast devices including a NVidia Shield but none of them will give me music.
 :'(
Title: Re: Musicbee Chromecast Plugin
Post by: catfishbear on July 05, 2020, 06:38:06 PM
Restarting the track suddenly got it working. /shrug

Thank you!
Title: Re: Musicbee Chromecast Plugin
Post by: Smultie on August 13, 2020, 09:42:00 AM
Finally I managed it to work by creating a rule for it in the firewall. With some help from the builder. Thanks.

The only strange thing was also that the sound didn't start in tv (and external receiver speakers) until I played next song. And also that after a few songs the sound disappears from the TV. But checking status, the chromecast is still connected.

How is your plug in coming along, Steven?

Wanna share what you did to get it working?
Title: Re: Musicbee Chromecast Plugin
Post by: nefcairon on August 16, 2020, 03:23:47 PM
Chromecasting only songs that are in the top-directory is a show-stopper for most of us, i guess :/
Title: Re: Musicbee Chromecast Plugin
Post by: renius28 on September 01, 2020, 08:09:44 AM
Steven - Any luck with a native 'official' plugin?
Thanks!
Title: Re: Musicbee Chromecast Plugin
Post by: Terry Walker on October 12, 2020, 02:52:18 AM
Now I feel like an idiot. Of course, he started the thread. Thanks 😊

It's okay, at least you showed your thoughts & concern.
Title: Re: Musicbee Chromecast Plugin
Post by: TRoJAnV on October 29, 2020, 05:04:48 PM
I've been working on this plugin a bit more recently, trying to make it more reliable and more tailored for musicbee specifically.

I was doing some research online and looking at the official casting API and made some changes to the original google cast API I was using. I finally published the changes and if you'd like to try it, I uploaded a new release.

Some major changes to note:

1. There's no need to set your library path anymore. Instead of the plugin hosting your whole music directory, instead I take the apporach a lot of the other casting apps do and host a temporary directory and make a copy of the current playing file. The plugin handles cleanup after everything's done.

2. There's finally something to look at when casting to a chromecast which has a display. (I haven't tested this on any of the smart displays i.e Nest Hub)

3. Theres now a custom receiver instead of the default media player. What this basically means is that if your device allows it, you can control the playback, either from the home app, or the device itself (i.e voice commands when casting to a smart speaker or when a smart speaker is present in a group)

4. I created a quick and dirty executable to add the necessary rules for the firewall and netsh command. The code is on github in the MBCCRules folder. Look at the readme for instructions on how to use it.

Wishlist:

I REALLY want to eventually find out how to do gapless casting. It seems that natively you can only do gapless when using HLS or DASH protocols. I believe that apps which allow for streaming the full 24bit/96khz to capable devices are using wav containers and are constantly writing a buffer to the file. It's something I might try to do in the future but its quite a big time sink so we'll see.


There might be some bugs (mainly in the UI; not really my expertise) but if you do end up trying the new plugin, let me know how it goes and if its working for you!

Here's an image of how the UI looks: (https://raw.githubusercontent.com/TroyFernandes/MusicBeeChromecast/master/Images/UI.jpg)
Title: Re: Musicbee Chromecast Plugin
Post by: splatt on November 07, 2020, 10:22:18 PM
I was able to install the addon and add the button to my toolbar with the help of a friend, but when we click the button it says "No Devices" and we aren't entirely sure why. Github is a touch above our understanding in general, we just followed the instructions as written. The status says "Chromecast Not Connected, Service Status: Not Running"

based on the settings the server should be running on 8080. When we run netstat there's no port 8080 waiting and listening. We don't find any button to turn on the server. We've tried disabling, enabling the extension, re-starting the software. We do see the rule in our firewall for allowing the chromecast communications.
Title: Re: Musicbee Chromecast Plugin
Post by: TRoJAnV on November 08, 2020, 12:46:41 AM
I was able to install the addon and add the button to my toolbar with the help of a friend, but when we click the button it says "No Devices" and we aren't entirely sure why. Github is a touch above our understanding in general, we just followed the instructions as written. The status says "Chromecast Not Connected, Service Status: Not Running"

based on the settings the server should be running on 8080. When we run netstat there's no port 8080 waiting and listening. We don't find any button to turn on the server. We've tried disabling, enabling the extension, re-starting the software. We do see the rule in our firewall for allowing the chromecast communications.

The webserver doesn't need to be started manually. It will only start up once its connected to a Chromecast successfully.

Have you tried looking at the Troubleshooting (https://github.com/TroyFernandes/MusicBeeChromecast#troubleshooting) part of the readme? Some google cast devices such as the home/mini/cc audio make a blip noise when something has connected to it.

Also this is how its supposed to work after connecting. Example (https://streamable.com/i7d27h)

Most of the time it's usually a firewall/network setting thats stopping musicbee from communicating with the chromecast. It's a bit hard for me to troubleshoot things like that since peoples network setup will be different between person to person.
Title: Re: Musicbee Chromecast Plugin
Post by: splatt on November 08, 2020, 12:58:26 AM
I was able to install the addon and add the button to my toolbar with the help of a friend, but when we click the button it says "No Devices" and we aren't entirely sure why. Github is a touch above our understanding in general, we just followed the instructions as written. The status says "Chromecast Not Connected, Service Status: Not Running"

based on the settings the server should be running on 8080. When we run netstat there's no port 8080 waiting and listening. We don't find any button to turn on the server. We've tried disabling, enabling the extension, re-starting the software. We do see the rule in our firewall for allowing the chromecast communications.

The webserver doesn't need to be started manually. It will only start up once its connected to a Chromecast successfully.

Have you tried looking at the Troubleshooting (https://github.com/TroyFernandes/MusicBeeChromecast#troubleshooting) part of the readme? Some google cast devices such as the home/mini/cc audio make a blip noise when something has connected to it.

Also this is how its supposed to work after connecting. Example (https://streamable.com/i7d27h)

Most of the time it's usually a firewall/network setting thats stopping musicbee from communicating with the chromecast. It's a bit hard for me to troubleshoot things like that since peoples network setup will be different between person to person.

Thank you for the quick response! We took a look at the troubleshooting for sure, but from what we could tell it didn't seem to apply. Since the devices list says 'no devices' we can't even connect anything, so there's no way we'd hear a connection noise. Looking at the video you kindly provided, we think we have everything set up right so we'll try checking our firewall and networking settings. My friend says your reply was very helpful!
Title: Re: Musicbee Chromecast Plugin
Post by: TRoJAnV on November 08, 2020, 01:12:39 AM
I was able to install the addon and add the button to my toolbar with the help of a friend, but when we click the button it says "No Devices" and we aren't entirely sure why. Github is a touch above our understanding in general, we just followed the instructions as written. The status says "Chromecast Not Connected, Service Status: Not Running"

based on the settings the server should be running on 8080. When we run netstat there's no port 8080 waiting and listening. We don't find any button to turn on the server. We've tried disabling, enabling the extension, re-starting the software. We do see the rule in our firewall for allowing the chromecast communications.

The webserver doesn't need to be started manually. It will only start up once its connected to a Chromecast successfully.

Have you tried looking at the Troubleshooting (https://github.com/TroyFernandes/MusicBeeChromecast#troubleshooting) part of the readme? Some google cast devices such as the home/mini/cc audio make a blip noise when something has connected to it.

Also this is how its supposed to work after connecting. Example (https://streamable.com/i7d27h)

Most of the time it's usually a firewall/network setting thats stopping musicbee from communicating with the chromecast. It's a bit hard for me to troubleshoot things like that since peoples network setup will be different between person to person.

Thank you for the quick response! We took a look at the troubleshooting for sure, but from what we could tell it didn't seem to apply. Since the devices list says 'no devices' we can't even connect anything, so there's no way we'd hear a connection noise. Looking at the video you kindly provided, we think we have everything set up right so we'll try checking our firewall and networking settings. My friend says your reply was very helpful!

Maybe this might help but on my end this is how my inbound firewall rule is setup (I only included the relevant info):

Protocols and Ports:
   Protocol Type: TCP
   Local Port: Specific ports -> 8080
Scope:
   Local IP Address -> Any IP Address
Advanced:
   Profiles: Private

And when I do "netsh http show urlacl" I can see the required rule:

    Reserved URL            : http://*:8080/
        User: \Everyone
            Listen: Yes
            Delegate: No
            SDDL: D:(A;;GX;;;WD)
Title: Re: Musicbee Chromecast Plugin
Post by: phred on November 08, 2020, 02:59:05 AM
I created a quick and dirty executable to add the necessary rules for the firewall and netsh command. The code is on github in the MBCCRules folder. Look at the readme for instructions on how to use it.
This sounds promising. I can not find any setup instructions, nor the readme in the ZIP of the latest version I just downloaded.
Title: Re: Musicbee Chromecast Plugin
Post by: TRoJAnV on November 08, 2020, 03:13:55 AM
I created a quick and dirty executable to add the necessary rules for the firewall and netsh command. The code is on github in the MBCCRules folder. Look at the readme for instructions on how to use it.
This sounds promising. I can not find any setup instructions, nor the readme in the ZIP of the latest version I just downloaded.

I should maybe change the wording. The setup in this instance is part of the plugin setup as a whole. The instructions are where the Installation (https://github.com/TroyFernandes/MusicBeeChromecast#installation) part of the readme is.

Anyways tho, usage for it is simple to run the .exe in a terminal window passing in the port # you wish to use. e.g "MBCCRules.exe 8080"
Title: Re: Musicbee Chromecast Plugin
Post by: phred on November 08, 2020, 03:33:38 AM
I should maybe change the wording. The setup in this instance is part of the plugin setup as a whole. The instructions are where the Installation (https://github.com/TroyFernandes/MusicBeeChromecast#installation) part of the readme is.

Anyways tho, usage for it is simple to run the .exe in a terminal window passing in the port # you wish to use. e.g "MBCCRules.exe 8080"
Thanks. I guess I should've scrolled all the down after I downloaded the ZIP. Might I suggest putting the instructions in the ZIP so if others do the same as me, they'll have them?
Title: Re: Musicbee Chromecast Plugin
Post by: TRoJAnV on November 08, 2020, 04:25:49 AM
I should maybe change the wording. The setup in this instance is part of the plugin setup as a whole. The instructions are where the Installation (https://github.com/TroyFernandes/MusicBeeChromecast#installation) part of the readme is.

Anyways tho, usage for it is simple to run the .exe in a terminal window passing in the port # you wish to use. e.g "MBCCRules.exe 8080"
Thanks. I guess I should've scrolled all the down after I downloaded the ZIP. Might I suggest putting the instructions in the ZIP so if others do the same as me, they'll have them?

Sure, Ill add them in later tonight
Title: Re: Musicbee Chromecast Plugin
Post by: splatt on November 08, 2020, 07:56:04 PM
I was able to install the addon and add the button to my toolbar with the help of a friend, but when we click the button it says "No Devices" and we aren't entirely sure why. Github is a touch above our understanding in general, we just followed the instructions as written. The status says "Chromecast Not Connected, Service Status: Not Running"

based on the settings the server should be running on 8080. When we run netstat there's no port 8080 waiting and listening. We don't find any button to turn on the server. We've tried disabling, enabling the extension, re-starting the software. We do see the rule in our firewall for allowing the chromecast communications.

The webserver doesn't need to be started manually. It will only start up once its connected to a Chromecast successfully.

Have you tried looking at the Troubleshooting (https://github.com/TroyFernandes/MusicBeeChromecast#troubleshooting) part of the readme? Some google cast devices such as the home/mini/cc audio make a blip noise when something has connected to it.

Also this is how its supposed to work after connecting. Example (https://streamable.com/i7d27h)

Most of the time it's usually a firewall/network setting thats stopping musicbee from communicating with the chromecast. It's a bit hard for me to troubleshoot things like that since peoples network setup will be different between person to person.

Thank you for the quick response! We took a look at the troubleshooting for sure, but from what we could tell it didn't seem to apply. Since the devices list says 'no devices' we can't even connect anything, so there's no way we'd hear a connection noise. Looking at the video you kindly provided, we think we have everything set up right so we'll try checking our firewall and networking settings. My friend says your reply was very helpful!

Maybe this might help but on my end this is how my inbound firewall rule is setup (I only included the relevant info):

Protocols and Ports:
   Protocol Type: TCP
   Local Port: Specific ports -> 8080
Scope:
   Local IP Address -> Any IP Address
Advanced:
   Profiles: Private

And when I do "netsh http show urlacl" I can see the required rule:

    Reserved URL            : http://*:8080/
        User: \Everyone
            Listen: Yes
            Delegate: No
            SDDL: D:(A;;GX;;;WD)


First off, Thanks again for the help. We adjusted some network settings and we've got connectivity to the chromcasts now. When we click the button on musicbee it pulls up all the options. Now the issue is that it doesn't start up the webserver. We get 2 errors the first says "The server factory could not be located for the given input: Microsoft.Owin.Host.HttpListener." The second error is "Error starting the Webserver. Webserver Exception".

Based on the errors we thought maybe we missed the microsoft.owin.host.httplistener.dll when copying things across to the musicbee folder, but it's there.

It seems to us that it's not a networking issue any more, but an issue with me missing something or something else happening on the machine side. Network seems fine now since when we go to status it says

"Chromcast: Connected.
Server Status: Not Running"

Any other helpful tidbits that might explain what's going? :)
Title: Re: Musicbee Chromecast Plugin
Post by: TRoJAnV on November 09, 2020, 01:04:54 AM
I was able to install the addon and add the button to my toolbar with the help of a friend, but when we click the button it says "No Devices" and we aren't entirely sure why. Github is a touch above our understanding in general, we just followed the instructions as written. The status says "Chromecast Not Connected, Service Status: Not Running"

based on the settings the server should be running on 8080. When we run netstat there's no port 8080 waiting and listening. We don't find any button to turn on the server. We've tried disabling, enabling the extension, re-starting the software. We do see the rule in our firewall for allowing the chromecast communications.

The webserver doesn't need to be started manually. It will only start up once its connected to a Chromecast successfully.

Have you tried looking at the Troubleshooting (https://github.com/TroyFernandes/MusicBeeChromecast#troubleshooting) part of the readme? Some google cast devices such as the home/mini/cc audio make a blip noise when something has connected to it.

Also this is how its supposed to work after connecting. Example (https://streamable.com/i7d27h)

Most of the time it's usually a firewall/network setting thats stopping musicbee from communicating with the chromecast. It's a bit hard for me to troubleshoot things like that since peoples network setup will be different between person to person.

Thank you for the quick response! We took a look at the troubleshooting for sure, but from what we could tell it didn't seem to apply. Since the devices list says 'no devices' we can't even connect anything, so there's no way we'd hear a connection noise. Looking at the video you kindly provided, we think we have everything set up right so we'll try checking our firewall and networking settings. My friend says your reply was very helpful!

Maybe this might help but on my end this is how my inbound firewall rule is setup (I only included the relevant info):

Protocols and Ports:
   Protocol Type: TCP
   Local Port: Specific ports -> 8080
Scope:
   Local IP Address -> Any IP Address
Advanced:
   Profiles: Private

And when I do "netsh http show urlacl" I can see the required rule:

    Reserved URL            : http://*:8080/
        User: \Everyone
            Listen: Yes
            Delegate: No
            SDDL: D:(A;;GX;;;WD)


First off, Thanks again for the help. We adjusted some network settings and we've got connectivity to the chromcasts now. When we click the button on musicbee it pulls up all the options. Now the issue is that it doesn't start up the webserver. We get 2 errors the first says "The server factory could not be located for the given input: Microsoft.Owin.Host.HttpListener." The second error is "Error starting the Webserver. Webserver Exception".

Based on the errors we thought maybe we missed the microsoft.owin.host.httplistener.dll when copying things across to the musicbee folder, but it's there.

It seems to us that it's not a networking issue any more, but an issue with me missing something or something else happening on the machine side. Network seems fine now since when we go to status it says

"Chromcast: Connected.
Server Status: Not Running"

Any other helpful tidbits that might explain what's going? :)

Ok, this is something I'm gonna have to look into. I've had another person open an issue regarding this same "missing" dll in the github page even though it's present. It's weird since I had a friend independently set up the plugin to test for me and he had no issue. Placing the dll in the same folder should be the fix but for some reason it doesn't. Ill look into it, Sorry for it not working.
Title: Re: Musicbee Chromecast Plugin
Post by: TRoJAnV on November 09, 2020, 03:11:30 AM
First off, Thanks again for the help. We adjusted some network settings and we've got connectivity to the chromcasts now. When we click the button on musicbee it pulls up all the options. Now the issue is that it doesn't start up the webserver. We get 2 errors the first says "The server factory could not be located for the given input: Microsoft.Owin.Host.HttpListener." The second error is "Error starting the Webserver. Webserver Exception".

Based on the errors we thought maybe we missed the microsoft.owin.host.httplistener.dll when copying things across to the musicbee folder, but it's there.

It seems to us that it's not a networking issue any more, but an issue with me missing something or something else happening on the machine side. Network seems fine now since when we go to status it says

"Chromcast: Connected.
Server Status: Not Running"

Any other helpful tidbits that might explain what's going? :)

Could you try this and tell me if it fixes it for you?

Move the "Microsoft.Owin.Host.HttpListener.dll" from the musicbee plugins folder to the musicbee main directory (i.e put the .dll where the main "MusicBee,exe" is. Up one folder). Only keep one copy of the .dll

If the above doesn't work for you, try the same as above but copy instead of move the .dll. So keep two copies.
Title: Re: Musicbee Chromecast Plugin
Post by: splatt on November 13, 2020, 02:20:21 AM
Woot! We got it working and here are some lessons learned.

Lesson one this extension has issues with the windows store music be app due to not the location of extension files not being were they should be :) (This may be why I've had issues with other Music bee extensions :) Thanks for helping me out with that as I didn't know it would matter until now.)

Due to lesson one, i installed the standard x86 installer and decided to try following the normal setup to see if it was ONLY because my other music bee was the windows store app, but I had the same issues as before.

Finally I tested the provided fix and it's working. :) I moved the listener dll to the same folder as musicbee.exe and it is now running as expected. (I think, I'm not actually sure what "expected" is, but it mutes my computer's music bee and just plays through the chromecast. Takes a hot second to spin up, but it works and that is more than I had before.)

Thanks so much for your help. Hopefully my experience will help others too. :)
Title: Re: Musicbee Chromecast Plugin
Post by: TRoJAnV on November 13, 2020, 04:07:11 AM
Woot! We got it working and here are some lessons learned.

Lesson one this extension has issues with the windows store music be app due to not the location of extension files not being were they should be :) (This may be why I've had issues with other Music bee extensions :) Thanks for helping me out with that as I didn't know it would matter until now.)

Due to lesson one, i installed the standard x86 installer and decided to try following the normal setup to see if it was ONLY because my other music bee was the windows store app, but I had the same issues as before.

Finally I tested the provided fix and it's working. :) I moved the listener dll to the same folder as musicbee.exe and it is now running as expected. (I think, I'm not actually sure what "expected" is, but it mutes my computer's music bee and just plays through the chromecast. Takes a hot second to spin up, but it works and that is more than I had before.)

Thanks so much for your help. Hopefully my experience will help others too. :)

Glad its working for you now! And yea, once it's connected to the chromecast it just mutes the main player since musicbee isn't outputting the audio per say; more just sending the song to the chromecast.
Title: Re: Musicbee Chromecast Plugin
Post by: RetroGameReaper on November 21, 2020, 01:36:33 AM
I'm having trouble getting the plugin to work. I put the Microsoft.Owin.Host.HttpListener.dll file where the MusicBee executable is and still nothing. I have both a Chromecast and Google Home Mini and I still get the "no devices" message when I try to connect.
Title: Re: Musicbee Chromecast Plugin
Post by: nht2 on November 30, 2020, 01:46:27 AM
Thanks for this plugin!  Install was super easy, had it up in mere minutes.  I really wanted a way to cast from my pc to my Apple HiFi with a Chromecast audio plugged in.
Title: Re: Musicbee Chromecast Plugin
Post by: nht2 on December 02, 2020, 02:56:44 AM
Something I've noticed the past few days: the plugin seems to have trouble seeing more than 8 casting devices at once. I have 11 running right now, and I find I have to repeatedly open and close the casting plugin and hope my chromecast audio pops up.
Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on December 17, 2020, 07:13:05 PM
Hi
I had to reinstall windows and forgot some steps of the installation af the chromecast plugin. I did 1-3, but I am actually not sure if I did n. 4-5 last time. At least I don't know how to navigate in the command promt window to the files and run the .exe file.

4. Open a command prompt window and navigate to the MBCCRules folder in the extracted zip
5. Run the .exe from the command prompt passing in the port you wish to use eg. MBCCRules.exe 8080

Could someone please help out
Title: Re: Musicbee Chromecast Plugin
Post by: Terex83 on December 20, 2020, 12:56:22 PM
Hi all,

I was looking forward to this plugin, but it sadly doesn't work right. I can get it installed and it recognises my Chromecast on TV, no problem connecting. Server status is OK. I can browse the files which should be played using the server address in a browser. So because all of this seems to work, I'm disappointed that when I cast my tunes from musicbee, the TV only displays some information of the track but does not display any album art and no sound is coming out from my speakers on my TV. I can't figure out why the music is not coming through...
Title: Re: Musicbee Chromecast Plugin
Post by: Winston on January 05, 2021, 06:45:50 PM
I am unable to get the chromecast pluggin to find my Chromecast Audio on my network. Google Chrome browser on the same PC finds my Chromecast Audio and plays music from a radio station that I cast to it. I have setup the plugin per the instructions and the trouble shooting guide, confirmed the settings, tried moving the dll to the MusicBee directory, even uninstalled and installed MusicBee, but no matter what I do when I click on Chromecast in MusicBee I get the "No Devices" dialog. Any guidance or suggestions would be very much appreciated.
Title: Re: Musicbee Chromecast Plugin
Post by: cjh6gc on January 15, 2021, 03:26:15 AM
If anyone is trying to get this to work with the store app, it can be done! It's a little complicated though.

Since Windows essentially bars you from modifying anything in the WindowsApps folder (where Windows Store apps are installed), you're going to have to do your work outside of Windows. I used Ubuntu Live on a flash drive, but there are numerous other ways you can do it.
If your drive is encrypted with Bitlocker (like mine), you'll need to follow a few more steps.
BEFORE booting into Ubuntu.
AFTER booting into Ubuntu.

While modifying files in the Ubuntu environment, you should be careful to not modify anything else, because you could corrupt your MusicBee or worse, Windows installation.
Title: Re: Musicbee Chromecast Plugin
Post by: psychoadept on January 15, 2021, 03:27:25 PM
That seems like a lot of work when you could just switch to the portable version, but cool to know if can be done. Would this work for any plug-in?
Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on January 16, 2021, 07:44:11 PM
Have installed the x86 program instead of windows app. Created the firewall rule through the .exe file and cmd prompt. Created button.

When I click the button my chromecast is visible in the list. But when clicking it I get two error message  following each other: first "Ett undatagsfel har inträffat i målet för en aktivering" (more or less, "an error exception has ocurred an the target for an activation") and then the message "Error starting the webserver. Webserver exception".

I tried both copy the .dll to the MB folder and then two copies in both the MB folder and the plugin folder. No results.

What am I doing wrong? Why doesn't the server starts?

PLease help. I managed to use the plugin before, but did a complete reinstallation of windows when changing my HDD to a SDD.
Title: Re: Musicbee Chromecast Plugin
Post by: cjh6gc on January 17, 2021, 05:54:38 PM
That seems like a lot of work when you could just switch to the portable version, but cool to know if can be done. Would this work for any plug-in?

Definitely a lot of work, and I thought about switching, but I appreciate that Windows handles the updates for me and I didn't want to mess with trying to copy all my settings and preferences over. Maybe that's easier than I thought.

I suppose this should work for any plugin, but using the "Add Plugin" option in under Edit Preferences > Plugins has worked for everything else I've thrown at it. I think this one is unique because we're not actually adding Microsoft.Owin.Host.HttpListener.dll to MusicBee, but just putting it in the folder that this Chromecast expects it to be in. There might be a way to update the plugin to look for that .dll in a different folder that's easier to access.
Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on January 17, 2021, 09:48:58 PM
I forgot the modification I had to do last time I installed it.

Since I am running MB in Swedish, I needed to change "Everyone" to "Alla" (Swedish for Everyone). Then cmd accepted the phrase.

Now the server is up running and I get the UI on my television, that is, I can see the artist and song etc. But no sound...  :-\  And I don't know how I solved the sound issue the last time. I tried with entering the machine and port number on my phone, but I didn't get any results.
Title: Re: Musicbee Chromecast Plugin
Post by: votaxoo on January 18, 2021, 11:03:35 AM
Thank you for this plugin ! I use it it works fine  :)
Title: Re: Musicbee Chromecast Plugin
Post by: gapsynaptic on February 25, 2021, 11:31:36 PM
Hi - I wanted to thank you for this plugin! It's made Musicbee so much more useful now that I can play music from my PC to anywhere in the apartment.

One tip I will share is that I had to turn on file/printer sharing (which I had turned off a long time ago):

Control Panel\Network and Internet\Network and Sharing Center\Advanced sharing settings

Before turning that on, the webserver was running and connecting to the CC but I wasn't getting any sound and couldn't see the files from my phone's browser. It all works now.

Question though: I don't seem to be able to seek inside the currently playing track (that is, move the playhead to a different part of the track) - is that a limitation of the plugin?
Title: Re: Musicbee Chromecast Plugin
Post by: marp68 on February 26, 2021, 09:30:04 AM
One tip I will share is that I had to turn on file/printer sharing (which I had turned off a long time ago):
Control Panel\Network and Internet\Network and Sharing Center\Advanced sharing settings

I have the same issue. Everything connected and MB, the artist name and song name shows up on my tv screen, but no sound. Unfortunately it didn't solve the problem by activating the file/printer sharing.

Any more tips?

I noticed that the rule that is now automatically created is for incoming traffic. Is that correct? I thought the rule would be for outgoing trafic. I created a similar rule for outgoing, but no results.

I had everything working before, but had to do a reinstallation of the OS on my laptop.
Title: Re: Musicbee Chromecast Plugin
Post by: gapsynaptic on February 27, 2021, 12:49:43 AM
One tip I will share is that I had to turn on file/printer sharing (which I had turned off a long time ago):
Control Panel\Network and Internet\Network and Sharing Center\Advanced sharing settings

I have the same issue. Everything connected and MB, the artist name and song name shows up on my tv screen, but no sound. Unfortunately it didn't solve the problem by activating the file/printer sharing.

Any more tips?

I noticed that the rule that is now automatically created is for incoming traffic. Is that correct? I thought the rule would be for outgoing trafic. I created a similar rule for outgoing, but no results.

I had everything working before, but had to do a reinstallation of the OS on my laptop.

For what it's worth, all I was getting was the word Musicbee in a large font on my TV – I wasn't getting any info about tracks or artists until I turned the file sharing on.

Title: Re: Musicbee Chromecast Plugin
Post by: foxj on April 01, 2021, 09:28:39 PM
Check out https://www.audiosciencereview.com/forum/index.php?threads/windows-to-chromecast.11110/

desktop app streaming to 5 devices at once.



from read me
This tool captures the audio from your desktop (or microphone) and streams it to a ChromeCast Audio device.

You can download an installer from the releases. After running setup.exe you can run the installed program from C:\Program Files (x86)\Desktop Audio Streamer\Desktop Audio Streamer\ChromeCast.Desktop.AudioStreamer.exe.

On the first run Windows will ask you to configure the firewall and this must be enabled for your home-network type (public or private) for audio to play.
If the application doesn't find your devices please read troubleshooting.
This tool can't be used to synchronize video on your desktop with audio on your devices. There's always a lag because of audio buffers on the devices and in the application.
Title: Re: Musicbee Chromecast Plugin
Post by: foxj on April 02, 2021, 01:20:21 AM
If anyone is trying to get this to work with the store app, it can be done! It's a little complicated though.

Since Windows essentially bars you from modifying anything in the WindowsApps folder (where Windows Store apps are installed), you're going to have to do your work outside of Windows. I used Ubuntu Live on a flash drive, but there are numerous other ways you can do it.
  • Rather than copying the plugin's files into MusicBee's folder (which Windows won't let you do), save them elsewhere and then add them in MusicBee under Edit Preferences > Plugins > Add Plugin.
  • Per some other users, you may also need to install the MusicBee UPnP/DLNA server plugin. I didn't try this without it.
  • Follow the instructions here (https://ubuntu.com/tutorials/create-a-usb-stick-on-windows#1-overview) to create install Ubuntu Live on a flash drive.
  • Make note of (1) where you have Microsoft.Owin.Host.HttpListener.dll saved and (2) the parent directory of musicbee.exe. You can find musicbee.exe's parent folder by right-clicking on it in Task Manager and selecting "Open file location".
  • Shut down your computer and boot Ubuntu Live from the flash drive. You may need to modify your UEFI/BIOS settings to get it to boot from the flash drive instead of booting your Windows installation.
  • Select Ubuntu in the first menu AFTER you've booted from the flash drive.
  • On the next menu, choose to boot from the drive rather than installing Ubuntu.
  • Now you should finally be into the Ubuntu desktop. Open the file manager and copy the .dll from wherever you saved it to both the same directory as musicbee.exe AND the plugins directory. I'm not sure if you need both, but it's better to be safe than sorry.
  • Shut down Ubuntu and reboot into Windows.
If your drive is encrypted with Bitlocker (like mine), you'll need to follow a few more steps.
BEFORE booting into Ubuntu.
  • Save your recovery key by right-clicking on the encrypted drive (in Windows) and selecting "Manage Bitlocker", then "Backup your recover key".
  • You can either save it to a text file or to your Microsoft account. In either case, it's a long set of numbers (8 sets of 6, with dashes in between).
AFTER booting into Ubuntu.
  • Open software center, click on edit, and the software sources. Then check the box that says "Community-maintained free and open-source software (universe)".
  • Follow the instructions here (https://www.linuxuprising.com/2019/04/how-to-mount-bitlocker-encrypted.html) to unlock and mount your drive. Where it says to type in your password as "-u<password>", use "-p<recovery key>" instead, where you replace "<recovery key>" with the long number you saved before, INCLUDING the dashes, and making sure there is NOT a space between "-p" and the beginning of your recovery key.
  • Copy the .dll as described above.

While modifying files in the Ubuntu environment, you should be careful to not modify anything else, because you could corrupt your MusicBee or worse, Windows installation.

Have you tried windows commands TAKEOWN and ICACLS

icacls "C:\Program Files\WindowsApps" /save "C:\temp\WindowsApps.acl"
(note the folders ownership using file properties > security tab > advanced .OWNER is at the top)

takeown "C:\Program Files\WindowsApps"

icacls "C:\Program Files\WindowsApps" /grant USERLOGIN:(OI)(CI)(RX,W)

This should work to secure it again

You could use icacls /reset to restore the permissions. I try to stay away from icacls /reset because it doesn't account for addon's, well a least on servers.

icacls "C:\Program Files\WindowsApps" /restore "C:\temp\WindowsApps.acl"

icacls "C:\Program Files\WindowsApps" /setowner "NT Service\TrustedInstaller" or whatever you noted in advanced security above

EDITED to remove duplicate very long quotes - phred
Title: Re: Musicbee Chromecast Plugin
Post by: mikehd on April 08, 2021, 01:17:18 AM
I got it working on the first go, thanks to all you creators and pioneers and a well written README.  :D

(https://lh3.googleusercontent.com/GSnkAG1zWvhbBxnNX5TvPqDN3WeO8jel-XD9aFbYQu-PKwOHFezZhwOZoB7bIdY9MaZeblpxsjz6N2uIROfTWRkBxOvqf23AGqWjL6n_qzkQGWJl51cb-yZArLV0q_tTxK3yKJmTovQ=w1920-h1080)
Title: Re: Musicbee Chromecast Plugin
Post by: frankz on April 08, 2021, 01:42:52 AM
I got it working on the first go, thanks to all you creators and pioneers and a well written README.  :D

(https://lh3.googleusercontent.com/GSnkAG1zWvhbBxnNX5TvPqDN3WeO8jel-XD9aFbYQu-PKwOHFezZhwOZoB7bIdY9MaZeblpxsjz6N2uIROfTWRkBxOvqf23AGqWjL6n_qzkQGWJl51cb-yZArLV0q_tTxK3yKJmTovQ=w1920-h1080)
Geez - that's pretty.  I might have to give it a go.  Good work, dev.
Title: Chromecast support
Post by: Yaapio on May 06, 2021, 05:37:46 PM
I know this topic has been adressed. And somewhere I saw Steve stating he was busy with it. I tried the plugin and all solutions that were offered until now...Unfortunately nothing works for me...It would be a dream come true. Regards
Title: Chromecast Plugin
Post by: richard127gm on May 09, 2021, 10:39:26 PM
Installed the Chromecast Plug-in from Troy Fernandez. It worked first time, but since then, despite finding my speaker group, no sound arrives. Eventually I get the error

MusicBee v3.4.7628.34032D  (Win10.0), 9 May 2021 22:33:

System.TimeoutException: The operation has timed out.
   at GoogleCast.TaskExtensions.<TimeoutAfter>d__0`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GoogleCast.Sender.<SendAsync>d__62`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GoogleCast.Channels.Channel.<SendAsync>d__12`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GoogleCast.Channels.ReceiverChannel.<LaunchAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GoogleCast.Sender.<LaunchAsync>d__60.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GoogleCast.Sender.<LaunchAsync>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MusicBeePlugin.ChromecastPanel.<MyButtonHandler>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)

Although Musicbee will output to a smart speaker, it doesn't have the facility to cast to a speaker group. Any chance this will be developed in the near future?
Title: Re: Musicbee Chromecast Plugin
Post by: eriqjaffe on May 27, 2021, 07:47:39 PM
I'm having trouble getting this running - the Chromecast is connected and the server is started but I don't get the track information:

(https://i.imgur.com/PLeD8zh.jpg)

...and no audio, of course.  I could ultimately live without the display.

When the track changes everything shows up for about a quarter of a second before it bounces back to this.  If I go to the URL in a web browser I get a 503 "Service Unavailable" error.  I'm guessing it might be a firewall issue but I'm not quite sure where to start looking.  Any help would be appreciated.
Title: Re: Musicbee Chromecast Plugin
Post by: mikehd on May 27, 2021, 08:03:01 PM
I'm having trouble getting this running - the Chromecast is connected and the server is started but I don't get the track information:

<image snipped>

...and no audio, of course.  I could ultimately live without the display.

When the track changes everything shows up for about a quarter of a second before it bounces back to this.  If I go to the URL in a web browser I get a 503 "Service Unavailable" error.  I'm guessing it might be a firewall issue but I'm not quite sure where to start looking.  Any help would be appreciated.

Have you read thru the readme file on GitHub? https://github.com/TroyFernandes/MusicBeeChromecast#readme
Title: Re: Musicbee Chromecast Plugin
Post by: chadjans on May 31, 2021, 02:55:02 AM
Anyway to get the album art attached to a FLAC to cycle on the screen?

Chad
Title: Re: Musicbee Chromecast Plugin
Post by: mikehd on May 31, 2021, 05:43:25 PM
In my reply #52 above, all I did was follow the installation and setup instructions in the referenced readme file at the GitHub repository.  If you've followed the readme, post back and I suspect more knowledgeable members will chime in on how to troubleshoot.
Title: Re: Musicbee Chromecast Plugin
Post by: Puk1337 on May 31, 2021, 08:22:05 PM
Hello everyone, thanks author for the work you've put in this plugin.
I am currently having the same issue that @eriqjaffe and some other are having. On the TV only text is displayed for a bit and then it shows the same as in @eriqjaffe screenshot.

Can't access the webserver index from my phone or any wireless device really, but i can do it on the local PC where MusicBee is running.

I followed all the instructions from GitHub and had no errors pop-up so far other than moving one of the dll to the MusicBee folder.

File sharing is on on my PC and also got the ACL configured properly.

I really have no clue how to fix this, any ideas guys?
Title: Re: Musicbee Chromecast Plugin
Post by: Puk1337 on June 01, 2021, 02:39:34 AM
Hello again, i have found the issue and it did had to do with the Firewall ACL. The issue arrives from how Windows 10 defines network types, public and private (which is defined as a work or home LAN networks). Windows 10 places higher security in the public profile as to protect the machine from unsecure networks such as a wifi spot in a restaurant for example.

When i checked my network type in control panel > network & sharing center, i've seen that my network profile is set to public, while the ACL was configured on private, this lead to the ACL to not function as intended. It also seems to explain why people have intermittent functionality, as each could have their network defined either of the two ways.

It seems that the MBCCRules creates the ACL as private only.

I suggest to either accommodate the MBCCRules executable to create the ACL as both private and public to apply for either network (if possible, i am not entirely sure how the libraries you've imported work):
                    Reference: firewallRule.Profiles = (int)NET_FW_PROFILE_TYPE2_.NET_FW_PROFILE2_PRIVATE;

(https://i.imgur.com/HTpgRcu.png)

And / Or include this as troubleshooting point on your github page for people facing this issue and looking for answers and solutions.

Also it seems that if the image art of the song, is not in a standard square format it fills too much of the space reserved for the image in the UI on the chromecast device and overlaps with the text. I suggest to set fixed boundaries for the image art to display and resize the image accordingly if it's over the set boundary. Much like how MusicBee already does it.

Edit #1: Wanted to post some more thoughts / suggestions:

- currently controls work in the MusicBee app while casting with the exception of seeking through a song. It can currently be controlled via the shared controls on a mobile device (Google Home > Media), but not from the app.

- The UI is really slick right now and i like it a lot, i would want it to also display the genre tag and fit more text (for longer titles, which are currently getting truncated). A progress bar would also be nice, and possibly display next and previous song information.

Thanks a lot for all the work :D
Title: Re: Musicbee Chromecast Plugin
Post by: chadjans on August 30, 2021, 08:54:27 PM
Sharing in case it might help others.

I was getting intermittent issues connecting every once and a while. Which would resolve after running the "MBCCrules" executable.

So I wrote a macro to start the MBCCrules before opening musicbee and then created a Windows shortcut to open musicbee with the MCCrules.

Looks like this:

Code
@echo off
cd "C:\Program Files (x86)\MusicBee"
start MusicBee.exe
cd "C:\Program Files (x86)\MusicBee\Plugins"
start MBCCRules.exe 8080
exit

Change the port number to your favorite, and the location of your copy of MBCCRules. I put it in the musicbee plugins folder.

Chad
Title: Re: Musicbee Chromecast Plugin
Post by: bmoon608 on November 19, 2021, 10:30:48 PM
Firstly, big thanks to the aurhor and contributors of this plugin. I am a programmer myself and I do appreciate how much effort is needed to develop and maintain this program.

I've been looking for a good player that can cast local music to my chromecast, and I am so glad I found music bee and this plug in. Everything worked like a charm on my first try, thanks to the instructions. BUT, only a day later after a reboot, the plugin stopped working. When I try to cast it always says "No Devices". Other programs such chrome can connect to the chromecast and play youtube etc. But in MB I just get "No Devices".

These are what I've tried:
 - Checked the chromecast and the PC are on the same wifi network. Both are connected to the main router (we have an wifi extender).
 - Restarted the chromecast
 - Checked wifi connection is private and the firewall rule applies to private network setting
 - Tried a different port
 - Removed and reinstalled the plugin
 - Switched off firewall completely
 - Tried the script chadjans posted earlier.

None of this made any difference.

Anything else I can try to diagnose this and get the conenction back? Thanks so much.
 
Title: Re: Musicbee Chromecast Plugin
Post by: bmoon608 on November 19, 2021, 11:33:00 PM
Firstly, big thanks to the aurhor and contributors of this plugin. I am a programmer myself and I do appreciate how much effort is needed to develop and maintain this program.

I've been looking for a good player that can cast local music to my chromecast, and I am so glad I found music bee and this plug in. Everything worked like a charm on my first try, thanks to the instructions. BUT, only a day later after a reboot, the plugin stopped working. When I try to cast it always says "No Devices". Other programs such chrome can connect to the chromecast and play youtube etc. But in MB I just get "No Devices".

These are what I've tried:
 - Checked the chromecast and the PC are on the same wifi network. Both are connected to the main router (we have an wifi extender).
 - Restarted the chromecast
 - Checked wifi connection is private and the firewall rule applies to private network setting
 - Tried a different port
 - Removed and reinstalled the plugin
 - Switched off firewall completely
 - Tried the script chadjans posted earlier.

None of this made any difference.

Anything else I can try to diagnose this and get the conenction back? Thanks so much.
 

Update: resolved by rebooting the PC again... ???
Title: Re: Musicbee Chromecast Plugin
Post by: scatterkeir on November 28, 2021, 01:11:12 PM
Loving this plugin, two little things that would make it better for me, both relating to artwork:

1. if an album has no artwork it's like eriqjaffe's screenshot, if it the layout could be fixed so that if there's no artwork the track title, artist and album title are still shown that would be great

2. if an album has massive artwork it struggles, it shows it at first then loses connection completely, there's various ways this could be dealt with but even just checking the image out first and refusing to attempt to show it if it doesn't like the look of it would be an improvement.
Title: Re: Musicbee Chromecast Plugin
Post by: richard127gm on January 13, 2022, 08:27:10 PM
Just can't get this to work. I've opened the necessary port, done everything suggested in the  forum, but nothing works. Just says it can't connect to server. It really would be good to have an official, built-in Chromecast option.
Title: Re: Musicbee Chromecast Plugin
Post by: richard127gm on January 18, 2022, 02:55:36 AM
BTW. The error I get is: Exception has been thrown by the target of an invocation.
Title: Re: Musicbee Chromecast Plugin
Post by: scatterkeir on March 09, 2022, 02:12:00 PM
I've noticed recently that it doesn't handle cue sheets correctly - if for instance, I have an hour long audio file split into ten tracks, and an auto-playlist contains track 5, which is 4:10 long, vanilla musicbee will play it correctly, but the chromecast plugin does not - I think what it's doing is, it plays the first 4:10 of the audio file, so it's getting the length correct but ignoring the start time/offset/whatever it's called.
Title: Re: Musicbee Chromecast Plugin
Post by: dontfollowme on April 30, 2022, 07:54:02 PM
Just watched a John Darko video and wondering if there is a way to send the now playing screen to my TV via Chromecast? Want to keep the audio away from the TV has I have no home cinema setup linked to my TV.
Title: Re: Musicbee Chromecast Plugin
Post by: phred on April 30, 2022, 11:03:18 PM
Just watched a John Darko video and wondering if there is a way to send the now playing screen to my TV via Chromecast? Want to keep the audio away from the TV has I have no home cinema setup linked to my TV.
If I'm not mistaken, this plugin is for casting MUSIC, not video.
Additionally, MB does show any videos. You need to link it to your video player application. Preferences > Player > video player. Once set up, any video files you click on in MB will open up the application you designated as the video player. It is -that- application that needs to be able to cast.
Title: Re: Musicbee Chromecast Plugin
Post by: dontfollowme on May 01, 2022, 09:33:20 AM
Thanks Phred. I have no wish to cast video just the now playing screen. I shall do some more digging.

Title: Re: Musicbee Chromecast Plugin
Post by: KisnardOnline on May 01, 2022, 10:45:22 PM
Plugin is great - thank you.  It would be great for this to be included right within the application.
Title: Re: Musicbee Chromecast Plugin
Post by: phred on May 01, 2022, 10:55:39 PM
Plugin is great - thank you.  It would be great for this to be included right within the application.
The reason it's a plugin is because Steven (MB's developer) doesn't want to have to maintain it.
Title: Re: Musicbee Chromecast Plugin
Post by: Lhark on September 08, 2022, 12:09:12 AM
I keep running into a deadend with this plugin, it used to work before my laptop randomly crapped out on me. Now I just getting 'exception has been thrown by the target of an invocation'. It'll cast the musicbee screen but wont play any music and it'll given me that error message. Same thing happens when I connect it to my google mini, I get the casting connection sound but I get the exception error directly after.
Title: Re: Musicbee Chromecast Plugin
Post by: boroda on September 08, 2022, 08:45:52 AM
try to reinstall plugin
Title: Re: Musicbee Chromecast Plugin
Post by: Lhark on September 09, 2022, 11:13:53 PM
I tried but I got the same result, I even tried doing it with the mb portable install. I just get the exception error and it always says the webserver isn't running.

(https://i.imgur.com/rPRHEiy.png)
Title: Re: Musicbee Chromecast Plugin
Post by: MusicMee on September 22, 2022, 11:47:48 PM
Thanks for a great plugin!

Curious to know the status of native MusicBee support for Chromecast? I would like to see a few things updated:
- The font size for the device list on the selection dialog is too big on my system
- I would like to see the display broken out as an isolated option (ie play on one speaker and display on another device, such as a TV)
- transcoding. This is a big one, as the plugin appears to send the audio in it's native bit/sample rate. My devices seem to choke on anything more than 24/48. So, I would like to see a lower bitrate option or see the stream bit/sample rate capped by default

I am considering taking TroyFernandes up on his offer and forking the build but if native support is on the horizon I would rather wait it out as I suspect my progress would be slow...
Title: Re: Musicbee Chromecast Plugin
Post by: phred on September 23, 2022, 12:54:40 AM
Curious to know the status of native MusicBee support for Chromecast?
I don't speak for Steven, but typically the reason a plugin gets created by a third-party developer is that Steven doesn't have the time or desire to develop and support the feature. Therefore, I would say it's unlikely that native Chromecast support would become part of MB.

Steven may or may not chime in on this, but if he doesn't, I would take that as his answer.
Title: Re: Musicbee Chromecast Plugin
Post by: Steven on September 23, 2022, 11:59:11 PM
Curious to know the status of native MusicBee support for Chromecast?
I started something that made quite a bit of progress but have no plans to continue. Happy to send the code if you want to look at it for ideas
Title: Re: Musicbee Chromecast Plugin
Post by: MusicMee on October 02, 2022, 03:48:42 PM
Curious to know the status of native MusicBee support for Chromecast?
I started something that made quite a bit of progress but have no plans to continue. Happy to send the code if you want to look at it for ideas

Hi Steven. That would be great! Thanks! It's been a busy week but I am hoping to spend some tinker time playing around this week/weekend.
Title: Re: Musicbee Chromecast Plugin
Post by: Kevin on October 05, 2022, 03:34:37 PM
I formatted my laptop. I was getting exception error. I uninstalled and re-installed the plugin. Now MB connects to CCA. But, My DAC says Error and no sound output is there from my System.

Status in MB says connected and running.
Title: Re: Musicbee Chromecast Plugin
Post by: Kevin on October 05, 2022, 06:41:08 PM
I can also see the streaming file in 192.168.1.X:8080 through my browser.. But My DAC says error.

CCA+DAC plays fine from my Phone.
Title: Re: Musicbee Chromecast Plugin
Post by: MusicMee on October 15, 2022, 02:28:20 PM
I initially had an issue where I could see Chromecast devices and select them but couldn't stream to them. It turns out Windows defender wasn't properly configured. I needed to go to "Windows Defender Firewall" -> "Allowed Apps" and enable both Public and Private access to "MusicBee Chromecast"
Title: Re: Musicbee Chromecast Plugin
Post by: Kevin on October 18, 2022, 03:54:58 PM
I initially had an issue where I could see Chromecast devices and select them but couldn't stream to them. It turns out Windows defender wasn't properly configured. I needed to go to "Windows Defender Firewall" -> "Allowed Apps" and enable both Public and Private access to "MusicBee Chromecast"

THANK YOU! My daily visit to the topic pays off!  :-* This totally solves my issue!
Title: Re: Musicbee Chromecast Plugin
Post by: Lhark on October 22, 2022, 11:26:25 AM
I initially had an issue where I could see Chromecast devices and select them but couldn't stream to them. It turns out Windows defender wasn't properly configured. I needed to go to "Windows Defender Firewall" -> "Allowed Apps" and enable both Public and Private access to "MusicBee Chromecast"
Ok this still didn't work for me, now I wish I never reset my laptop because this is unbelievable. I've set every possible setting to public and private on both portable and web app and I keep getting exception has been thrown error no matter what I do and it's driving me crazy. I give up.
Title: Re: Musicbee Chromecast Plugin
Post by: PeteJ on October 23, 2022, 11:04:10 AM
Hello I've got it working.
I had the issue previous people have had with details etc being displayed (In my case on a TV via a NVidia Shield) but no sound. All I did was in MusicBee on my laptop, change Output to Primary Sound Driver. Hey Presto, sound! Everything seems to working fine now!

Thanks to the developer for this!
Title: Re: Musicbee Chromecast Plugin
Post by: Lhark on October 26, 2022, 12:01:47 PM
I initially had an issue where I could see Chromecast devices and select them but couldn't stream to them. It turns out Windows defender wasn't properly configured. I needed to go to "Windows Defender Firewall" -> "Allowed Apps" and enable both Public and Private access to "MusicBee Chromecast"
Ok this still didn't work for me, now I wish I never reset my laptop because this is unbelievable. I've set every possible setting to public and private on both portable and web app and I keep getting exception has been thrown error no matter what I do and it's driving me crazy. I give up.
UPDATE: Semi solved my problem now I get no audio and no album art.
Title: Re: Musicbee Chromecast Plugin
Post by: atgr24869 on November 03, 2022, 05:16:56 AM
I found it worked setting port 8081 through the included program (MBCCRules.exe 8081) and then setting both public and private through Windows firewall settings ... also MusicBee, on Chromecast HD with Google TV. If you have a webserver exception try changing the port, be sure that it reflects the plugin configuration in MusicBee, control again the firewall port if they match. The usage is first connecting to the device and then play. The cover display nicely, hope you solve. Thank for this plugin, I hope for the future it could stream also webradios.
Title: Re: Musicbee Chromecast Plugin
Post by: Sekt0r on November 13, 2022, 04:48:14 PM
Thanks for this, I came across it the other day and just tried it, no issues with the setup, I chose Port 9091 (I recall having issues with another program that used 8080 as a default) but I did have to enable the Public option on the Firewall rule but otherwise all good.

Plays 24-bit and high bitrate files without issue with the limited play I've had so far (im casting to a Nvidia Shield which supports 24bit/192).
Don't expect anything but if I was going to make a request, support for some sort of visualizer (abstract/Spectrum/Other) would be amazing otherwise the current layout looks great for what it is, only other thing I'd say on the current features is support for a default album picture/background would be good for tracks without album art.
Title: Re: Musicbee Chromecast Plugin
Post by: MangerzArt on January 10, 2023, 07:50:24 PM
okeyyy! after 3hours i finally solved the problem.  i was getting error like most of you guys.
error starting the web server
web server exception

 tools (ALT +T )-> checkstatus  (i was checking on settings > tools like an idiot for 3 hours)
chromecast : connected
server status : not running

But when i run musicbee, as administrator. (just right click > run as admin )
 i can connect without problems.
Thanks for the plugin!
Title: Re: Musicbee Chromecast Plugin
Post by: supermic59 on April 02, 2023, 09:41:33 AM
(Sorry for my english, I'm french ;-)  )
Hello to all
Impossible to connect to an Nvida Shield (I only have "Musicbee" logo on my TV) ..
Even I run Musicbee as an admin .. It doesn't work !


(https://i.imgur.com/KBo4P89.png)
Title: Re: Musicbee Chromecast Plugin
Post by: PeteJ on April 02, 2023, 09:04:30 PM
Hi,
Can you connect musicbee to the shield via chromecast?
My musicbee has a 'Chromecast Button' in the top toolbar. When I click on that it shows 'Shield' as a device. When I click on 'Shield' I get 'Musicbee' displayed on my TV. When I start playing music in Musicbee all plays fine. My Musicbee output is set to Speakers (Realtek(R) Audio)
Title: Re: Musicbee Chromecast Plugin
Post by: supermic59 on April 04, 2023, 11:49:57 AM
Hi,
Can you connect musicbee to the shield via chromecast?
My musicbee has a 'Chromecast Button' in the top toolbar. When I click on that it shows 'Shield' as a device. When I click on 'Shield' I get 'Musicbee' displayed on my TV. When I start playing music in Musicbee all plays fine. My Musicbee output is set to Speakers (Realtek(R) Audio)
Thanks for your answer. For me it's the same as you, when I click on "Shield" , I get MusicBee message on my TV. But no sound from my Shield/TV when I play a song from Musicbee. And I still have "Error starting the webserver. Webserver exception". So I will try to change the output selection, thanks again ! 
Title: Re: Musicbee Chromecast Plugin
Post by: PeteJ on April 05, 2023, 08:05:31 AM
Hi,
Can you connect musicbee to the shield via chromecast?
My musicbee has a 'Chromecast Button' in the top toolbar. When I click on that it shows 'Shield' as a device. When I click on 'Shield' I get 'Musicbee' displayed on my TV. When I start playing music in Musicbee all plays fine. My Musicbee output is set to Speakers (Realtek(R) Audio)
Thanks for your answer. For me it's the same as you, when I click on "Shield" , I get MusicBee message on my TV. But no sound from my Shield/TV when I play a song from Musicbee. And I still have "Error starting the webserver. Webserver exception". So I will try to change the output selection, thanks again !  
Also. if it is working, as well as hearing the playing track, the album art should show on your TV screen.
Is the webserver port for the addin set to 8080?
Title: Re: Musicbee Chromecast Plugin
Post by: supermic59 on April 09, 2023, 08:58:41 AM
Always the same .. I get the message "Musicbee" logo on my TV ..
First, I get "exception has been thrown by the target of an invocation", and then "error starting the web sever, webserver exception"
Port is set to 8080, firewall rules opened for plugin and musicbee app .. If some has an idea..  ;-)
Title: Re: Musicbee Chromecast Plugin
Post by: Pylgrim on August 16, 2023, 10:35:29 AM
So I have been enjoying this for a while, but I just moved homes and now the plugin finds no devices (even though I am attempting to reach exactly the same device as before). I Tried changing the port number in both sides but that didn't help. I am stumped as I see no reason why it wouldn't work.

EDIT: After rebooting my laptop, the plugin can now find the device but when I play music, it doesn't come out of anywhere, either my computer speakers or my chromecast speaker.
Title: Re: Musicbee Chromecast Plugin
Post by: Neeil2001 on September 18, 2023, 02:54:35 PM
Guys, can someone please elaborate the steps in installing and using, especially in the 'Installation' part? I cant even do No. 3 in installation since i cant find the 2 .dll files from the extracted folder. Any help would be appreciated.
Title: Re: Musicbee Chromecast Plugin
Post by: karbock on September 18, 2023, 05:32:11 PM
Hello Neeil2001 and welcome to the forum.

Within the extracted folder, the 2 .dll files are simply in subfolder MB_Chromecast\Plugin.

Direct link to the latest .ZIP (v. 2.0.0), just in case:
https://github.com/TroyFernandes/MusicBeeChromecast/releases/download/2.0.0/MB_Chromecast.zip
Title: Re: Musicbee Chromecast Plugin
Post by: plasmakoala on September 23, 2023, 05:15:50 PM
Hello, I recently downloaded this plugin and after some troubleshooting I get the Musicbee title to appear on my TV screen as well as the title and other info of the song but the sound just comes out of my computer speakers. Any suggestions?
Title: Re: Musicbee Chromecast Plugin
Post by: franharrington on October 27, 2023, 06:45:14 PM
I'm having the same issues that others have reported: Info shows on the device (title, artist, etc.) but no sound or album art.
Title: Re: Musicbee Chromecast Plugin
Post by: phred on October 27, 2023, 10:23:03 PM
@franharrington, @plasmakoala...

The developer of this plugin hasn't been on the forum since February 2022, so you may be out of luck.
Title: Re: Musicbee Chromecast Plugin
Post by: Havokdan on October 28, 2023, 11:51:45 AM
I would like to make a suggestion, move the topics in which the plugins are discontinued to their own folder.
Title: Re: Musicbee Chromecast Plugin
Post by: Arpe on November 02, 2023, 01:36:10 AM
I installed this recently, I didn't think it was working and am not techie enough to troubleshoot, so i thought oh well, never mind.

I had set it up while a song was paused in Musicbee and when I hit play nothing would happen (though I think the generic "Musicbee" was showing on my TV). But then when that song stopped, and another started I had music coming out of my sound bar (into which my Cromecast is plugged)! Happy days! So it won't start playing until a track is STOPPED and a new one begins.

Though it can't play gapless, it's like it disconnects and reconnects between each song, so if I have my PC speakers on at the same time, they play the very start of the song 2 or 3 times before it starts playing on the soundbar.
Title: Re: Musicbee Chromecast Plugin
Post by: siteunseen699 on November 30, 2023, 07:30:43 PM
Are we just going to ignore that it requires a docterate in data technology to install this?

Can someone please make a friendly indian how-to youtube video.
Title: Re: Musicbee Chromecast Plugin
Post by: MotleyG on November 30, 2023, 07:38:59 PM
Are we just going to ignore that it requires a docterate in data technology to install this?

Can someone please make a friendly indian how-to youtube video.

See reply #102 from 2023-10-27.

The plug-in developer hasn't been around in almost 2 years.
Title: Re: Musicbee Chromecast Plugin
Post by: ThY on December 20, 2023, 02:29:19 AM
okeyyy! after 3hours i finally solved the problem.  i was getting error like most of you guys.
error starting the web server
web server exception

 tools (ALT +T )-> checkstatus  (i was checking on settings > tools like an idiot for 3 hours)
chromecast : connected
server status : not running

But when i run musicbee, as administrator. (just right click > run as admin )
 i can connect without problems.
Thanks for the plugin!

Thank you for this.
it solved it for me :)