Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: simple musicIP mixer integration Problem (Read 2690 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

simple musicIP mixer integration Problem

hello to all,
i have a question, that is related to foo_run and MusicIP and some basic things.
I experiment with the MusicIP Api just for fun and had the idea to integrate this in foobar2000 with foo_run.

Here the steps if someone want to reproduce it:

1. download and install MusicIP mixer and scan your library.
2. start the server of musicIP over File/Preferences/Services
(i installed this as service, because the server was always shut down after minutes -> read here more: http://forums.slimdevices.com/showthread.p...4787#post114787 )
3. point your browser to http://localhost:10002/api - a simple webform is shown.
now try: http://localhost:10002/api/mix - a list of filepath should shown.
this is a random mix.
now try: http://localhost:10002/api/mix?artist=your+artist - this should return a mix with "your artist" as seed.
ok and now with the suggested parameter content=m3u for playlist
http://localhost:10002/api/mix?artist=Spok...amp;content=m3u
browser returns a m3u playlist for download.

so far so good.
I tried to open this url with foobar2000 File/Add Location but I get a Playback error:
Quote
Unable to open item for playback (Unsupported format or corrupted file):
"http://localhost:10002/api/mix?artist=Spokane&content=m3u"


I think if this will not work, it will not work with foo_run ?!
I've set up a really simple call (I hope it's correct)
Code: [Select]
C:\Programme\foobar2000\foobar2000.exe Command:"File/Add Location" http://localhost:10002/api/mix?content=m3u&artist=$replace(%artist%, ,+)

and this result in.
Quote
Unable to open item for playback (Unsupported format or corrupted file):
"http://localhost:10002/api/mix?content=m3u&artist=Inquiet"

Unable to open item for playback (Unsupported file format):
"C:\Programme\foobar2000\Command:File\Add Location"


At this point, I have no idea what is wrong, maybe the foo_run command is false, but I should be able to load the m3u playlist over Add Location (and any other remote playlist works)?!

Maybe someone has an idea or more knowledge what happen there, or have some free time to try out these steps ;-)
Thanks and best wishes
Marcus