getmusicbee.com

MusicBee & Add-Ons => Customizations => Plugins => Topic started by: bazinga on April 29, 2014, 02:12:30 PM

Title: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on April 29, 2014, 02:12:30 PM
System Requirements
Windows PC
MusicBee installed on your PC
.NET Framework 4.0 installed on your PC
Dacp Plugin for MediaMonkey
Bonjour ZeroConf for Windows (make sure UDP Port 5353 is open in your Firewall)
WI-FI Internet Connection (make sure Port 3689 is open in your Firewall)


Instructions:
- download the zip file at http://goo.gl/n7k3jg
- unzip the content into your MusicBee "Plugins" directory
- start MusicBee
- open any iTunes client app (the plugin has been tested with ReTune for Android)
- connect to the server in the client app
- pair the app device in MusicBee using the code provided by the client

Enjoy...

The plugin is very similar to MonkeyTunes (http://melloware.com/monkeytunes/) and shares the same Dacp library. Please refer to that page for more info/screenshot.

PLEASE double check that your firewall/router etc etc allows connection to/from ports 5353 and 3689... and that you can reach the MusicBee PC from your client device.

If using MusicBee from a not-administrator account, please open a cmd.exe as administrator and:
netsh http add urlacl http://+:3689/ user=\Everyone

Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: nosaj72 on April 29, 2014, 05:26:08 PM
Wow, this is awesome! Works great with the iTunes remote app on my iPhone. Only glitch was I had to run MusicBee as admin or it gave me an error on startup.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on April 29, 2014, 06:56:47 PM
Glad you liked it.

For the admin thing: I didn't think about it. A netsh.exe line should fix it. I'll let you know as soon as I can try it.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: eLr0n on April 30, 2014, 12:04:05 AM
This is awesome. Only Problem is that its sometimes very slow. If i choose a Song from an Album it plays instantly. If i choose a different Song in the same ablum it takes 3-4 Seconds until it plays and sometimes i even have to klick it again cause nothing happens or musicbee freezes completely and i have to close it with the task manager.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on April 30, 2014, 07:38:02 AM
eLr0n,

can you reproduce the problem? I mean: if you re-load your album, and re-do the same steps, the problem happens every time?
What client are you using?
I will give you instructions on how to set up the log so that we can have a look at it.
It might be because I'm forced to do a "next track" multiple times: in musicbee there's no such API for "play track # in playlist". But I'm going to ask in the other section.

Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: eLr0n on April 30, 2014, 12:44:21 PM
Im using retune.
I think youre right it is caused bei using the next track method. If you have 100 tracks in youre playlist the time for changing to  a track is equal to its position in the playlist. For example the first 3 Tracks are quite fast and for switching to track 99 you have to wait for ever and musicbee doesnt respond in this time so you have to close it with the task manager if you dont want to wait 10 minutes for the song to play^^

But i think there must be a solution to this since it is working in Kelsos Musicbee Remote App without a delay.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on April 30, 2014, 01:27:06 PM
Yep, just asked on the API forum and Steven replied with a method to do it:
http://getmusicbee.com/forum/index.php?topic=12694.msg76722#msg76722

I'll try and upload a new version tomorrow
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 01, 2014, 11:03:13 AM
Wow, this is awesome! Works great with the iTunes remote app on my iPhone. Only glitch was I had to run MusicBee as admin or it gave me an error on startup.

Hi,

can you try with the netsh command as specified in first post?

(also update lib with link in first post)
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 01, 2014, 11:04:37 AM
This is awesome. Only Problem is that its sometimes very slow.

Please try the new version (link in the first post)
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: eLr0n on May 02, 2014, 11:25:39 AM
Now it is perfect! Everything works and is super fast. This plugin should be added to the next release of musicbee :)

Theres one more thing where i dont know if its a bug with retune or youre plugin. When i choose a song from a playlist the first song in the list is played and not the one that i choose.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: SimonBRT on May 02, 2014, 12:36:19 PM
Reading the monkeytunes link, it mentions that it is commercial software with a limited use trial.  Is that the case here?
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: nosaj72 on May 02, 2014, 02:40:32 PM
can you try with the netsh command as specified in first post?

Works great now, Thanks!!
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 02, 2014, 05:02:03 PM
Now it is perfect! Everything works and is super fast. This plugin should be added to the next release of musicbee :)

Glad you liked it!

Theres one more thing where i dont know if its a bug with retune or youre plugin. When i choose a song from a playlist the first song in the list is played and not the one that i choose.

Mmh, 99% chance it's a bug on my side. I didn't test the playlist part that much. Let me give it a look.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 02, 2014, 05:05:47 PM
Reading the monkeytunes link, it mentions that it is commercial software with a limited use trial.  Is that the case here?

The person who developed the MonkeyTunes software released the DACP library (the part not-related to musicmonkey) as open source. He has been kind enough to also reply to my questions during the development of the MusicBee Plugin.
But in this case the software is free of charge. To be honest, most of the challenge was in the DACP library.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 03, 2014, 11:35:56 AM
Theres one more thing where i dont know if its a bug with retune or youre plugin. When i choose a song from a playlist the first song in the list is played and not the one that i choose.

Mmh, 99% chance it's a bug on my side. I didn't test the playlist part that much. Let me give it a look.


Should be fixed. Please download latest version from first post.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: psychoadept on May 03, 2014, 05:23:20 PM
It seems like this plugin will help a lot of people!  Please be sure to add it to the wiki.

http://musicbee.wikia.com/wiki/Plugins
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: eLr0n on May 04, 2014, 07:17:39 PM
Theres one more thing where i dont know if its a bug with retune or youre plugin. When i choose a song from a playlist the first song in the list is played and not the one that i choose.

Mmh, 99% chance it's a bug on my side. I didn't test the playlist part that much. Let me give it a look.


Should be fixed. Please download latest version from first post.

Still doesnt work for me.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 05, 2014, 07:29:48 PM
Still doesnt work for me.


Yep, uploaded wrong version... please try new link in first post.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: de.cayed on May 05, 2014, 11:58:45 PM
I keep getting a 503 error. I've made sure the ports are open and I have bonjour installed, am I missing something?
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 06, 2014, 09:06:37 AM
I keep getting a 503 error. I've made sure the ports are open and I have bonjour installed, am I missing something?

try with your firewall completely off.

At what point you get the 503 error? I guess you're able to pair the device to the MusicBee server?

Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: eLr0n on May 06, 2014, 11:46:16 AM
Still doesnt work for me.


Yep, uploaded wrong version... please try new link in first post.

Everything works great now!
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: SimonBRT on May 06, 2014, 07:49:44 PM
Reading the monkeytunes link, it mentions that it is commercial software with a limited use trial.  Is that the case here?

The person who developed the MonkeyTunes software released the DACP library (the part not-related to musicmonkey) as open source. He has been kind enough to also reply to my questions during the development of the MusicBee Plugin.
But in this case the software is free of charge. To be honest, most of the challenge was in the DACP library.


Thats fantastic.  Really appreciate the effort!  I will have to give this a try as soon as I get chance!
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: de.cayed on May 07, 2014, 01:58:39 AM
try with your firewall completely off.

At what point you get the 503 error? I guess you're able to pair the device to the MusicBee server?
The first thing I did was try it with my firewall off when I got the message and it still didn't work. I get the message after I put the code in to connect to MusicBee. I'm assuming that it might be something to do with the app more than your plugin actually, but I thought I would post here and see what you say first.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: SimonBRT on May 07, 2014, 08:30:52 PM
Just wanted to say that I have this working and its fantastic!  MB finally has a fully featured remote.  It did hang a couple of times but I'll let you know if its something I can reproduce.  Thanks again!
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 08, 2014, 09:25:14 AM
try with your firewall completely off.

At what point you get the 503 error? I guess you're able to pair the device to the MusicBee server?
The first thing I did was try it with my firewall off when I got the message and it still didn't work. I get the message after I put the code in to connect to MusicBee. I'm assuming that it might be something to do with the app more than your plugin actually, but I thought I would post here and see what you say first.

weird. What client are you using?
Are you able to use Wireshark? It would give me a trace of what happens on the network. Using it is simple: close everything that might use the network (outlook, browsers etc) and start a capture. Save it a find a way to share it with me.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: de.cayed on May 08, 2014, 06:36:54 PM
weird. What client are you using?
Are you able to use Wireshark? It would give me a trace of what happens on the network. Using it is simple: close everything that might use the network (outlook, browsers etc) and start a capture. Save it a find a way to share it with me.

https://dl.dropboxusercontent.com/u/3236921/CannotConnectToLibrary.pcapng
 I started it before I attempted to connect again, and ended it after I got the 503 Cannot connect to library error. I'm using Retune to try to connect, but I've tried other iTunes remote apps to see and they won't connect either. I even tried turning off my antivirus along with the firewall...
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 09, 2014, 09:27:06 PM
There's nothing wrong with your ports... it seems a bug while parsing the library. Please

- download the version from link in first message (had to change a line to fix the logging)
- put this file:  https://drive.google.com/file/d/0B-5iLIByS2U9aVpDZFRidDNYQ3M/edit?usp=sharing into musicbee "AppData" directory. If you have a portable version it's just "AppData" under musicbee directory, otherwise you'll have to find the file "MusicBeeSettings.ini" in your harddrive to understand where that directory is (should be under %APPDATA% I suppose?).
- create a directory C:\temp
- start musicbee, a file "log.txt" should be created in C:\temp

let me see what that log looks like...
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: de.cayed on May 09, 2014, 10:18:40 PM
Here's the log:
https://dl.dropboxusercontent.com/u/3236921/log.txt
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 10, 2014, 07:01:22 AM
ok. There's some "duration" in your songs that I didn't consider, don't know what it is...

Please use these 2 files:

https://drive.google.com/file/d/0B-5iLIByS2U9dlBuRzFYeE5kYkk/edit?usp=sharing
https://drive.google.com/file/d/0B-5iLIByS2U9dVJJdzlwenNCWms/edit?usp=sharing

in place of the ones you have in Plugins.
Then re-send me the log...

Thank you for your patience.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: de.cayed on May 10, 2014, 08:03:01 AM
So here's the log:
https://dl.dropboxusercontent.com/u/3236921/log2.txt

Whatever you did worked though. It connects to the library! Sometimes the remote stops working completely but I think that's just the app because another app I tried does have some lag, but it doesn't completely stop or anything.

Also, no need to thank me I know stuff like this can't be fixed like magic even though I have no clue what you're doing. XD And getting upset over something like this won't help at all. Thank YOU for working on this so much
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: Ansem on May 12, 2014, 07:56:11 AM
i tried it, but when i open musicbee hw told me "access denied" and it stop working. how can i resolve? :(
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 13, 2014, 08:15:45 PM
are you launching musicbee as admistrator? please try the "netsh" commands in first post
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: Ansem on May 13, 2014, 09:43:12 PM
i tried both the command and to run from administrator :(
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 14, 2014, 01:58:27 PM
please try these steps:

http://getmusicbee.com/forum/index.php?topic=12687.msg77189#msg77189

let me know what is your log
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: squiercaster on May 15, 2014, 03:38:19 PM
Hello,
firstly thanks very much for your work. I had the 503 error, but with the new files I managed to get it working with ReTune.
Apart from occasional negligible bugs (which are probably caused by retune), it seems to use Album Artist as Artist, so with quite a large library, it gets very disorganized, when sorting by Artist in the app (as I use the Artist tag mainly).
I've tried other apps but it seems that this is a feature of the plugin. Can this be changed?
Thanks again!
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: muzikmark on May 16, 2014, 11:10:06 AM
I cannot get this to work.
I am running Windows 8.1 and using an iphone 4s with the Remote app.
I run MusicBee as administrator and I get the window to enter the code.
Once the code is entered the app stalls while trying to connect every time.
Right now I have my firewall completely off and still having no success.
For me, this is the only thing missing from MusicBee that I really want!
Any help is GREATLY appreciated!

Mark
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 17, 2014, 08:31:48 AM
unfortunately I don't have an iPhone, so you'll have to help me here...
Please try to get a log (see previous posts) and, if you can, a wireshark trace...
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: muzikmark on May 18, 2014, 01:06:44 PM
Here is the log.
https://drive.google.com/file/d/0B7Lh9_jE5EuJSDNZRFdmYjVHNEk/edit?usp=sharing

Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on May 26, 2014, 10:46:42 AM
any chance you can try to do a wireshark trace?
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: Skinjob on June 01, 2014, 08:23:52 PM
I also have the 530 error when trying to load the library in Retune.  I enabled log4net and can see the startup and retune connection all seem fine, so there dosen't seem to be any connectivity issue. However, I found this at the end of the log:

2014-06-01 15:10:53,965 [25] DEBUG Melloware.DACP.DatabaseResponse [(null)] - Creating DatabaseResponse...
2014-06-01 15:10:55,258 [25] ERROR Melloware.DACP.DACPServer [(null)] - MusicBee Error: Input string was not in a correct format.
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.Int32.Parse(String s)
   at DacpMusicBeePlugin.MusicBeeLibCache..ctor(MusicBeeApiInterface mbApi) in c:\Users\SCARAMACCAI\Documents\Visual Studio 2013\Projects\dacp-net-read-only\DacpMusicBeeServer\MusicBeeLibCache.cs:line 135
   at MusicBeePlugin.Plugin.<.ctor>b__86() in c:\Users\SCARAMACCAI\Documents\Visual Studio 2013\Projects\dacp-net-read-only\DacpMusicBeeServer\Plugin.cs:line 35
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at MusicBeePlugin.Plugin.GetDatabaseInfo(HttpListenerRequest request) in c:\Users\SCARAMACCAI\Documents\Visual Studio 2013\Projects\dacp-net-read-only\DacpMusicBeeServer\Plugin.cs:line 697
   at Melloware.DACP.DACPServer.DispatchRequest(HttpListenerRequest request, HttpListenerResponse response, Boolean isCompressed) in c:\Users\SCARAMACCAI\Documents\Visual Studio 2013\Projects\dacp-net-read-only\dacp-net\Melloware.DACP\DACPServer.cs:line 367
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: patd315 on June 04, 2014, 02:52:54 AM
I have been waiting for someone to implement this for a couple of years. However, I have a problem. I installed and ran the shell command as instructed. Installed retunes on my android phone. Checked everything by pairing with iTunes. When I try to pair with MusicBee I get the pairing window. Actually, I usually get 3 or 4windows layered on top of each other. I have tried entering the pairing numbers in however all the pairing windows but it never pairs. Any ideas, help, etc. would be greatly appreciated. Please!

Thank you in advance
Pat

P.S. I ran some cleanup and rebooted. It now appears to pair but I get that 503 error, library can not be found. I hope you can help. Thanks
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on June 07, 2014, 06:17:09 AM
Can you both try with new file in first post?
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: creagrox on June 07, 2014, 10:17:02 AM
Holy Thanks awesome dev
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: Skinjob on June 07, 2014, 10:05:05 PM
Woohoo!  Works great now!  Thank you so much.

This plugin+Retune is pretty awesome.  When I was still on Winamp I used the excellent aWARemote, and it was the one thing I really missed after moving to MusicBee.  Not anymore!  Thanks again for the great work!
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: Skinjob on June 07, 2014, 10:17:54 PM
BTW - regarding the requirement for Bonjour, you might want to mention in the first post that you don't have to actually install iTunes to get it.  Apple doesn't seem to have a separate Bonjour distribution anymore, but you can download the latest iTunes setup and use 7-zip (or some other archive tool) to open the iTunes setup exe as an archive and extract the Bonjour installer.

I really, really didn't want to pollute my system with iTunes and was kind of annoyed when I thought there was no choice.  Maybe it's common knowledge to people more familiar with Apple stuff, but it took me some searching to find this solution.  So I thought you might want to mention this in the first post for people that don't even know what Bonjour is or might be put off by thinking they have to install iTunes.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: SimonBRT on June 08, 2014, 05:37:09 PM
been using this a few weeks now.  have to admit had lots of problems with it not connecting each time i restarted my pc, but now i seem to have figured out how to assign a static IP, everything seems to work like magic.  working like this, this is an absolutely massive addition to MB.  absolutely love it.  i was a great fan of kelsos' android remote which was a very fine piece of work, but this has so so much more functionality.

thanks again for the time to create this plugin.  love it!  (choosing records from the kitchen will never get old!)
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: weejake on June 15, 2014, 06:39:48 PM
can someone tell me how to get the firewall port excepting the connection without turning off the whole firewall.
you guys have said the port should be 3689
well ive done all that but the only way i can get connection is by turning off the firewall all together.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: weejake on June 16, 2014, 07:28:34 PM
ok so i have figured out how to change the ports by allowing edge traversal.

but it still dosnt allow the connection unless i have the firewall completely turned off...
i would rather not put my pc at risk just to allow this app to connect ..

has anyone else got the app to work with the firewall on??
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: weejake on June 16, 2014, 08:02:36 PM
also the app im using  doesnt detect the radio stations i have saved as a playlist eg. http://icecast6.play.cz/dance-radio320.mp3
it sees the playlist but nothing inside

i might say im using the rtremote app on the windows store at this point......sorry

is this the app fault or the dacp plugin??
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on June 17, 2014, 03:00:49 PM
I will try to give you instructions on how to open the specific ports on the firewall.
As per the radio station, I've never tried one so it's not available yet...
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: weejake on June 17, 2014, 08:25:35 PM
ok so thanks for the offer but i think i have it sussed...
i realised i had to create a new open port 3689 instead of trying to modify an existing port within musicbee

however im having trouble trying to have the tablet in control mode and the windows phone at the same time...
it looks like i can only have one in operation at a time

Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: Skinjob on June 19, 2014, 05:17:42 PM
I'm currently using Retune with this plugin.  Should I be able to edit the current playback queue?  For example, reorder songs in the list?

Retune says it support this with iTunes 11 and MonkeyTunes:
* iTunes 11 Up Next Support. Add songs, albums, artist, genres, composers, and playlists to the Up Next list. Including the ability to view/remove/reorder songs and parts of the Up Next list.
* MonkeyTunes Play Queue support.

I can see the playback queue in Retune, but I can't seem to edit it in any way.  Am I just not understanding how to use this feature in Retune, or is it not implemented in the plugin yet?  Anyone else tried this?
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: SimonBRT on June 19, 2014, 10:25:23 PM
I'm currently using Retune with this plugin.  Should I be able to edit the current playback queue?  For example, reorder songs in the list?

Retune says it support this with iTunes 11 and MonkeyTunes:
* iTunes 11 Up Next Support. Add songs, albums, artist, genres, composers, and playlists to the Up Next list. Including the ability to view/remove/reorder songs and parts of the Up Next list.
* MonkeyTunes Play Queue support.

I can see the playback queue in Retune, but I can't seem to edit it in any way.  Am I just not understanding how to use this feature in Retune, or is it not implemented in the plugin yet?  Anyone else tried this?

If you are missing it I am missing it too.  I found the same thing with Retune.  Looks like it should allow re-ordering but does not seem to.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on June 20, 2014, 09:45:45 AM
could be a bug in the plugin, I'll try to find time to give it a look tomorrow.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: eLr0n on June 25, 2014, 01:35:28 PM
I have another suggestion.
Could you upload a Version where the use of the Tag "Album-Artist" and "Artist" is switched.
For example if you have a compilation album with different artists the "Album-Artist" is VA or something similar.
If you search for an Artist that is on this album you wont find him cause the search is only lookin for "Album-Artist"
The Text for the playing song is wrong in this case too. Its Song - VA - Compilation. So you cant see whos the real Artist of this Song.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: vpsaxman on June 26, 2014, 03:58:03 AM
Thanks for the wonderful plugin!

There is one thing I can't figure out: it seems I'm not able to perform a search with more than one word. For example, when searching for the song "just friends", if I perform a search query with "just" or a separate one with "friends", I'll get a (different) list of results with songs containing either words but searching for "just friends" returns "no results found". Same for albums and artists (eg: searching for "miles davis" or "kind of blue" won't work).
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on July 02, 2014, 11:36:44 AM
sorry I couldn't work on it last week, hope I can come with a new version soon
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: rikigst on July 15, 2014, 02:06:40 PM
Hi all,
I've set up everything as instructed in the first post, including the netsh thing. I can't seem to get the pairing to work: when I open retune on android I'm shown the 4 digit code, in the meantime musicbee is running but i'm not prompted with anything and there's no change in the interface. Windows  firewall is off. Devices are on the same wifi network (which is my university's network, god only knows how that's set up). Clicking on the configure plugin button only gives me the author's info. What am I supposed to do? The instructions aren't very clear on this last passage.. Am I supposed to click somewhere in musicbee interface in order to input the pairing code?
Thanks!
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on July 16, 2014, 09:13:05 AM
can you do a wireshark trace?

also a log would be useful:

http://getmusicbee.com/forum/index.php?topic=12687.msg77189#msg77189
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: Skinjob on July 29, 2014, 07:11:28 PM
Bazinga - just wondering if you had any ideas on this question from a few weeks ago.  No pressure if you're busy with other stuff.  Just wondering if it's supposed to work, planned in the future, never gonna happen, etc.

I'm currently using Retune with this plugin.  Should I be able to edit the current playback queue?  For example, reorder songs in the list?

Retune says it support this with iTunes 11 and MonkeyTunes:
* iTunes 11 Up Next Support. Add songs, albums, artist, genres, composers, and playlists to the Up Next list. Including the ability to view/remove/reorder songs and parts of the Up Next list.
* MonkeyTunes Play Queue support.

I can see the playback queue in Retune, but I can't seem to edit it in any way.  Am I just not understanding how to use this feature in Retune, or is it not implemented in the plugin yet?  Anyone else tried this?
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: vpsaxman on August 04, 2014, 05:23:17 AM
Any feedback re: inability to search more than 1 word? I'm using the latest version of MB available in the forum, Win7 and iPad 4 with Apple's remote app. Thanks!
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: vpsaxman on August 04, 2014, 09:11:48 PM
Any feedback re: inability to search more than 1 word? I'm using the latest version of MB available in the forum, Win7 and iPad 4 with Apple's remote app. Thanks!

So I figured it out. In order to search more than one word you have to use "WORD"+"WORD" syntax. I wish I could get rid of the "+" sign but that'll do in the meantime.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: wsoldier on August 08, 2014, 03:30:20 AM
Hey all, just found this plugin which sounds promising but I'm having trouble pairing.   I'm trying to test with Retune on my mobile device.  Here's the log below.  Any help would be greatly appreciated!

Code
2014-08-07 19:24:17,925 [1] INFO  MusicBeePlugin.Plugin [(null)] - Shutting Down MusicBee DACP Server...
2014-08-07 19:24:17,940 [1] INFO  Melloware.DACP.DACPServer [(null)] - Shutting down DACPServer...
2014-08-07 19:24:17,941 [1] DEBUG Melloware.DACP.DACPServer [(null)] - Releasing 0 CountDownLatches
2014-08-07 19:24:17,943 [1] INFO  Melloware.DACP.DACPPairingDatabase [(null)] - Serializing XML file: C:\Users\ODiN\AppData\Roaming\MusicBee\MusicBee.xml
2014-08-07 19:24:17,946 [1] INFO  Melloware.DACP.DACPPairingServer [(null)] - Shutting Down DACPPairingServer...
2014-08-07 19:24:17,948 [11] WARN  Melloware.DACP.DACPServer [(null)] - HttpListener Stopped: The I/O operation has been aborted because of either a thread exit or an application request
2014-08-07 19:24:17,948 [11] DEBUG Melloware.DACP.DACPServer [(null)] - Releasing 0 CountDownLatches
2014-08-07 19:24:20,353 [10] INFO  MusicBeePlugin.Plugin [(null)] - *** Creating MusicBee DACP Server 1.8.0.0 ***
2014-08-07 19:24:20,368 [10] INFO  Melloware.DACP.DACPServer [(null)] - Starting DACPServer...
2014-08-07 19:24:20,368 [10] INFO  Melloware.DACP.DACPServer [(null)] - Checking Port 3689
2014-08-07 19:24:20,369 [10] INFO  Melloware.DACP.DACPServer [(null)] - Port 3689 available = True
2014-08-07 19:24:20,370 [10] INFO  Melloware.DACP.DACPPairingDatabase [(null)] - Initializing DACPPairingDatabase
2014-08-07 19:24:20,372 [10] INFO  Melloware.DACP.DACPPairingDatabase [(null)] - Creating DACPPairingDatabase....
2014-08-07 19:24:20,372 [10] INFO  Melloware.DACP.DACPPairingDatabase [(null)] - Deserializing XML file: C:\Users\ODiN\AppData\Roaming\MusicBee\MusicBee.xml
2014-08-07 19:24:20,381 [10] INFO  Melloware.DACP.DACPPairingDatabase [(null)] - Creating DACPPairingDatabase....
2014-08-07 19:24:20,384 [10] INFO  Melloware.DACP.DACPPairingServer [(null)] - Initializing DACPPairingServer...
2014-08-07 19:24:20,386 [10] INFO  Melloware.DACP.DACPPairingServer [(null)] - mDNS Version: 333.10.0
2014-08-07 19:24:20,394 [10] DEBUG Melloware.DACP.DACPServer [(null)] - Publishing mDNS Service...
2014-08-07 19:24:20,395 [10] DEBUG Melloware.DACP.DACPServer [(null)] - mDNS Version: 333.10.0
2014-08-07 19:24:20,400 [10] INFO  Melloware.DACP.DACPServer [(null)] - Starting Listener http://+:3689/...
2014-08-07 19:24:20,968 [16] INFO  Melloware.DACP.DACPServer [(null)] - Published mDNS Service: domain(local.) type(_touch-able._tcp.) name(23328D9A23328D9A)
2014-08-07 19:24:20,968 [18] INFO  Melloware.DACP.DACPServer [(null)] - Published mDNS Service: domain(local.) type(_http._tcp.) name(MusicBee GIGABYTE)
2014-08-07 19:24:20,968 [17] INFO  Melloware.DACP.DACPServer [(null)] - Published mDNS Service: domain(local.) type(_dacp._tcp.) name(MusicBee GIGABYTE)

Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on August 18, 2014, 08:10:26 AM
sorry for the delay, I was busy these weeks.
I'll look into the matters as soon as I can.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: vpsaxman on August 18, 2014, 08:18:40 AM
sorry for the delay, I was busy these weeks.
I'll look into the matters as soon as I can.

Hey no problem. I think we're all reasonable on this forum and we all have a life. The plugin is awesome as is!!
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: haydns on September 02, 2014, 03:08:31 AM
Currently using Telsos android remote exactly what additional functionality does this plugin provide?
Thanks
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: Skinjob on September 03, 2014, 08:39:33 PM
Currently using Telsos android remote exactly what additional functionality does this plugin provide?
Thanks

Mostly it gives you choice.  It let's you use any iTunes compatible remote control app, of which there are a multitude, so you're pretty much guaranteed to be able to find one you like.  Also, it currently supports more features than Kelsos' app, which is still pretty early in development.

BTW, I'm not knocking Kelsos' app.  What he's completed so far is good, but it will take a while to catch up to some of the more mature apps out there.  Where Kelsos's app may ultimately get the edge is that he may be able to deliver unique, Musicbee-specific functionality that is outside the scope of the iTunes/DACP spec.

Check out the Retune app for an example of a really good, free remote control app that works with this plugin.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: haydns on September 13, 2014, 04:22:47 AM
Have got device Nexus 7 to pair but not getting it to connect to library?
"Unable to locate specified library"
Help
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: djl62490 on September 29, 2014, 05:55:27 AM
I'm having some connectivity issues.  I get as far as successfully pairing musicbee with my phone, but then I get the following error:

"Unable to locate specified library. Please make sure iTunes is started on your computer. Error code: -10"

Anybody else have this issue and work through it already?
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: djl62490 on September 29, 2014, 06:01:29 AM
Whoops, I realized I was missing the Media Monkey plugin in the requirements.  Please ignore my post above!

Everything is working now except the currently playing section.  It shows the same song currently playing even when I start a new one, and I'm unable to pause it (but volume and seeking to a specific time work just fine).  Any thoughts?

Edit:  Actually I'm getting a lot of issues with connectivity.  If I restart musicbee and reset the connection, everything functions ok.  But once I select a new song to play, the Play/Pause/Skip Track/Seek/etc. buttons all stop functioning.  Soon after that it stops being able to pull up artists and songs.  If I restart MusicBee it will work again, but only for 30 seconds or so.  If I try to reset the connection on Retune without restarting MusicBee, the progress wheel will just keep spinning and nothing happens.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: eLr0n on January 23, 2015, 09:34:36 PM
I have another suggestion.
Could you upload a Version where the use of the Tag "Album-Artist" and "Artist" is switched.
For example if you have a compilation album with different artists the "Album-Artist" is VA or something similar.
If you search for an Artist that is on this album you wont find him cause the search is only lookin for "Album-Artist"
The Text for the playing song is wrong in this case too. Its Song - VA - Compilation. So you cant see whos the real Artist of this Song.

Still no fix for this???
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: MrLocoLuciano on January 24, 2015, 12:58:18 AM
Hi All,

Retune is finding MusicBee on my comp (saying connection to MusicBee on MrLoco) but keep trying to connect.
Finally says "unable to find library, Make sure Itunes is started on the computer"
Code error : -10

Help would be appreciated !

Thanks
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: dylstew on January 24, 2015, 02:52:32 PM
I forwarded the ports on my router and made exceptions in my windows firewall.
Then I downloaded the zip and unzipped it in  the plugins folder.
I restarted Musicbee.
I downloaded Retunes for android.
I open Retunes and it tells me to type in a code.
Pressing the configure button for the Dacp plugin only shows some info, but has no configuartion.

What do I do now?

nevermind: After installing Itunes for the Bonjour ZeroConf thing, I got a pop up to type in the code.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: HaraldBluetooth on February 06, 2015, 12:04:57 PM
Hi Bazinga, this plugin is working just perfect with the MusicBee library (local files).

When I play Xbox Music tracks via the MusicBee plugin, I don't get any information about now playing or the now playing queue.

I would also wish, that the search function worked with the Xbox Music plugin, when this plugin is active in MusicBee.

Is it possible to get this to work with your plugin.

Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: minotza on April 02, 2015, 10:01:53 PM
First of all, Bazinga, let me say thank you! I have been searching for a remote control for MusicBee and this is the only one that can be found, and it works perfectly. Thank you so much. I followed your instructions and I am using the Remote app for itunes on my iphone 6. I ran into the access denied message for the server and ran your cmd script and it worked perfectly.

I'm just interested in how the hell you made this? What kind of programming language did this require to make? How does this thing work on a technical level? Also what does that cmd shell script do exactly? I'm just really curious, thanks if you can answer!
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on April 08, 2015, 07:57:59 AM
Hi everybody,

just wanted to tell you that I'm going to open source the plugin so that anyone can contribute...
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: eLr0n on April 08, 2015, 01:57:54 PM
Great cant wait to fix the artist, album-artist bug.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bazinga on October 04, 2015, 04:02:22 PM
Sorry for the late reply.
I put the code on github for everyone to contribute https://github.com/ultimoamore/musicbee-dacp-plugin
 


Great cant wait to fix the artist, album-artist bug.

Can you send me somehow an album where you see this problem? Thank you
(EDIT: found an example, will see what I can do...)

Any feedback re: inability to search more than 1 word? I'm using the latest version of MB available in the forum, Win7 and iPad 4 with Apple's remote app. Thanks!

So I figured it out. In order to search more than one word you have to use "WORD"+"WORD" syntax. I wish I could get rid of the "+" sign but that'll do in the meantime.

This doesn't happen using Retune; what are you using?
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: vpsaxman on October 04, 2015, 06:13:13 PM
This doesn't happen using Retune; what are you using?

Apple's Remote app. (https://itunes.apple.com/us/app/remote/id284417350?mt=8)
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: eLr0n on October 07, 2015, 07:10:51 PM
Sorry for the late reply.
I put the code on github for everyone to contribute https://github.com/ultimoamore/musicbee-dacp-plugin
 


Great cant wait to fix the artist, album-artist bug.

Can you send me somehow an album where you see this problem? Thank you
(EDIT: found an example, will see what I can do...)

Any feedback re: inability to search more than 1 word? I'm using the latest version of MB available in the forum, Win7 and iPad 4 with Apple's remote app. Thanks!

So I figured it out. In order to search more than one word you have to use "WORD"+"WORD" syntax. I wish I could get rid of the "+" sign but that'll do in the meantime.

This doesn't happen using Retune; what are you using?

The Album-Artist and Artist ID-Tags are just switched.
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: sbga420 on December 18, 2016, 04:42:00 AM
Is anybody still getting this to work with the newest version of Musicbee? I'm trying to get it working on ipad Itunes remote app and I get an error on the ipad "iTunes remote can't connect to your itunes library. Check your network settings and try again."  I'm running as administrator and turned windows firewall off
Title: Re: Dacp Plugin: control MusicBee using iTunes-compatible apps
Post by: bramnet on February 25, 2017, 03:59:57 AM
Is this still being worked on by anyone? or is it basically dead?