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.
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: