Reply To: FirePlay Flash client for FireFly


@Bo Mellberg wrote:

@fizze wrote:

Hm, may I be so bold to ask how you tell the flash what server to connect to?
I think for a split second I see connecting to “slug:8008”, but then it doesnt show ANY music of course, coz that port…. well is just plain wrong, its cherokee’s port on my slug? 😕

The code for the server detection looks like this:

var serverstring:String = "http://" + String(this._url).split("/")[2];

Which evaluates to (on my server):

Given that you have your browser to connect to your server with:

and you have placed all Flash specific items (html, swf and AC-runactivecontent.js) in your admin-root folder.

Ok, now I get it. And it works 🙂 Yay!
If i place it in the mt-daapd directory it works, of course. Still, if I want to run it from another webserver on the same server, say, cherokee, it doesnt work because it assumes the wrong port. At the moment that doesn’t really matter as I am the only user. But that might change. So any clues for hard-coding the server:port somewhere?