Reply To: SoundBridge Web Services

#3350
t0m
Participant

neat feature.

The script is working with php4 if you remove ‘private’ from the functions in sb.php line 59 and in rss.php line 23.

anyway.. I wasn’t able to use the script by selecting a nyt.svc file from my SB, using the modified mt-daapd-ssc.sh script – running mt-daapd cvs-20050522.

I’ve configured my SB IP 192.168.0.101 in mt-daapd-ssc.sh and placed an empy file nyt.svc in my mp3 dir /mnt/hdc1/mp3/nyt.svc and restarted the server:


2005-05-29 09:10:24: Starting rendezvous daemon
2005-05-29 09:10:24: Starting signal handler
2005-05-29 09:10:24: Signal handler started
2005-05-29 09:10:25: Initializing database
2005-05-29 09:11:04: Starting mp3 scan
2005-05-29 09:12:15: Found music file: nyt.svc
2005-05-29 09:12:27: Processing static playlist: /mnt/hdc1/mp3/InternetRadio.m3u
2005-05-29 09:12:28: Starting web server from /usr/share/mt-daapd/admin-root on port 3689
2005-05-29 09:12:28: Preparing to listen on port 3689
2005-05-29 09:12:28: Starting server thread
2005-05-29 09:12:28: Registering rendezvous names
2005-05-29 09:12:28: Scanned 11653 songs in 124 seconds

When I try to “play” nyt.svc my SB says: “Unable to play nyt.svc”

the corresponding mt-daap log:


2005-05-29 09:12:49: Request: GET /server-info HTTP/1.0
2005-05-29 09:12:49: Request: GET /login HTTP/1.0
2005-05-29 09:12:49: Request: GET /databases?session-id=1 HTTP/1.0
2005-05-29 09:13:19: Request: GET /databases/1/items?query='dmap.itemname:*nyt*'&session-id=1&type=music&meta=dmap.itemid,dmap.itemname,daap.songdatakind,daap.songformat,daap.songalbum,daap.songdisabled,daap.songdiscnumber,daap.songtracknumber,daap.songdescription,daap.songbitrate HTTP/1.0
2005-05-29 09:13:31: Request: GET /databases/1/items?query='dmap.itemid:11653'&session-id=1&meta=dmap.itemid,dmap.itemname,daap.songalbum,daap.songartist,daap.songbitrate,daap.songbeatsperminute,daap.songcomment,daap.songcompilation,daap.songcomposer,daap.songdatakind,daap.songdataurl,
daap.songdateadded,daap.songdatemodified,daap.songdescription,daap.songdisccount,daap.songdiscnumber,daap.songdisabled,daap.songeqpreset,daap.songformat,daap.songgenre,daap.songgrouping,daap.songrelativevolume,daap.songsamplerate,daap.songsize,daap.songstarttime,
daap.songstoptime,daap.songtime,daap.songtrackcount,daap.songtracknumber,daap.songuserrating,daap.songyear HTTP/1.0
2005-05-29 09:13:31: Request: GET /databases/1/items/11653.wav?session-id=1 HTTP/1.0
2005-05-29 09:13:31: Thread 5: Autoconvert file /mnt/hdc1/mp3/nyt.svc for client
2005-05-29 09:13:31: Session 1: Streaming file 'nyt.svc' to 192.168.0.1 (offset 0)
2005-05-29 09:13:31: Finished streaming converted file to remote
2005-05-29 09:13:31: Got CLD signal. Reaping

So.. what’s wrong here?

I also wonder about why mt-daapd says “Streaming to 192.168.0.1” although my SB’s IP is 192.168.0.101 and 192.168.0.1 is the IP of my WLAN Router.

/t0m

Post edited by: T0m, at: 2005/05/29 10:38

Post edited by: T0m, at: 2005/05/29 12:08