Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TRoJAnV

Pages: 1
1
Plugins / Re: Musicbee Chromecast Plugin
« 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.

2
Plugins / Re: Musicbee Chromecast Plugin
« 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.

3
Plugins / Re: Musicbee Chromecast Plugin
« 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 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

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.

4
Plugins / Re: Musicbee Chromecast Plugin
« 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 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

5
Plugins / Re: Musicbee Chromecast Plugin
« 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 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"

6
Plugins / Re: Musicbee Chromecast Plugin
« 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 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

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)

7
Plugins / Re: Musicbee Chromecast Plugin
« 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 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

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.

8
Plugins / Re: Musicbee Chromecast Plugin
« 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:

9
Developers' Area / Invoking registered command from another plugin?
« on: October 24, 2020, 01:33:59 PM »
Hey,

This is kinda a two part question.

1) How is the "mbApiInterface.MB_InvokeCommand(Command command, object parameter);" used? Is there an example of this function call someone's used before as an example I could see?

2) Is it possible to call a function that was registered by another plugin?

For example, if in Plugin A I did: "mbApiInterface.MB_RegisterCommand("MyFunction", DoSomething);"

In plugin B: Can I call that registered method? If so how would I go about it?

Thanks!

10
Plugins / Re: Musicbee Chromecast Plugin
« 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

11
Plugins / Musicbee Chromecast Plugin
« 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

12
Plugins / Re: Philips Hue Plugin for MusicBee
« on: January 21, 2018, 03:01:46 AM »
Hello TRoJAnV,


i'm very excited trying get your plugin working :D
Unfortunately there seems to be a problem with it.

I'm currently using MB Version: 3.2.6582
and your plugin with Version: 1.1.0

As soon I pressed the Save button in the settings dialog I get the following error:


MusicBee v3.2.6582.38854 (Win6.3), 20 Jan 2018 19:12:

SharpHue.HueApiException: method, GET, not available for resource, /
   bei SharpHue.JsonClient.Request(HttpMethod method, String apiPath, String data) in E:\Users\Troy F\Desktop\SharpHue-master\SharpHue\JsonClient.cs:Zeile 48.
   bei SharpHue.JsonClient.RequestSecure(HttpMethod method, String apiPath) in E:\Users\Troy F\Desktop\SharpHue-master\SharpHue\JsonClient.cs:Zeile 62.
   bei SharpHue.LightCollection.Refresh() in E:\Users\Troy F\Desktop\SharpHue-master\SharpHue\Lights\LightCollection.cs:Zeile 70.
   bei SharpHue.LightCollection..ctor() in E:\Users\Troy F\Desktop\SharpHue-master\SharpHue\Lights\LightCollection.cs:Zeile 34.
   bei MusicBeePlugin.SettingsComponent.SettingsSelector.listLightsButton_Click(Object sender, EventArgs e)
   bei System.Windows.Forms.Control.OnClick(EventArgs e)
   bei System.Windows.Forms.Button.OnClick(EventArgs e)
   bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
   bei System.Windows.Forms.Button.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Obviously several times wrong path variables used by your plugin.
The paths are seem only be valid on YOUR system.
Your could you check this please?

Greetings

I put out a new version. v1.1.1. Did you try this version?

I made a mistake when saving the settings file and fixed it with this release. If it still dosen't work let me know. I'm not too sure what I would have to change in how the dll's are added as I was under the assumption they get compiled and outputted to the debug/release folder. I'm fairly new to C# so if you know the answer I would love to know.

13
Plugins / Philips Hue Plugin for MusicBee
« on: January 17, 2018, 04:20:10 AM »
Hi,

If you want to sync your light color to the current song you're playing, then check out this plugin I made.

https://github.com/TroyFernandes/MusicBee-Philips-Hue

I have a full writeup on the Github page including installation so check it out if you want to learn more. This is something I did as a personal project and its the first time I've ever made code with the intention of other people using it, so sorry if theres a few bugs. This is still a learning process for me.

If you do end up using it, let me know. I would like to know what you think. I plan on adding a feature to sync the beats to the lights, but we'll see how it goes.

Installation Video: https://www.youtube.com/watch?v=pC_aEZKBmo4&feature=youtu.be

Pages: 1