FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › General Discussion › SoundBridge Web Services
- This topic has 4 replies, 3 voices, and was last updated 19 years, 5 months ago by t0m.
-
AuthorPosts
-
27/05/2005 at 3:12 AM #64pellerGuest
In case anyone here is interested, I posted some code to the Roku forum to provide RSS feeds on a SoundBridge using PHP and mt-daapd:
http://www.rokulabs.com/forums/viewtopic.php?t=2812
I’m using the mt-daapd-ssc script to trigger the ‘apps’, though the flow is a little rough. The only thing missing was a property in mt-daapd-ssc to provide the IP address of the device (nice to have). It may help also if I stream some audio while the script is executing, but it’s hard to make non-audio content fit in with the SoundBridge UI. Maybe there are other ways to achieve this?
Post edited by: peller, at: 2005/05/26 20:12
Post edited by: peller, at: 2005/05/27 01:35
28/05/2005 at 12:55 AM #3348rpeddeParticipantI’ve mostly got the iTunes XML stuff done, and two of the things on my list are:
1. Better interface for adhoc scripts (like you are doing right now). That’s detailed at http://www.mt-daapd.org/index.php?option=com_simpleboard&Itemid=40&func=view&id=1149&catid=7.
If you are interested in remote IP with that, I can add that.
2. An event infrastructure such that interesting events (client connect/disconnect/play song, etc) gets reported somehow. (unix socket? fifo? something like that)
Once I get #1 done, perhaps that will help your effort. It will allow you to transcode *and* run your apps, anyway, plus control the “song” display on iTunes better (or the soundbridge)
28/05/2005 at 10:06 AM #3349pellerGuestAll sounds great! Yes, IP address and client “user-agent” type would be helpful (I think you may have already added the latter?)
I like the event model. Don’t much care what mechanism is used. It could just be a local script file that gets triggered for simplicity. I like being able to know, for example, when the device connects, to trigger an app, etc.
Most of the real integration issues lie on the SoundBridge side, I think.
Post edited by: peller, at: 2005/05/28 03:08
29/05/2005 at 2:40 PM #3350t0mParticipantneat 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
29/05/2005 at 7:10 PM #3351t0mParticipantfound the “error”
wrong shell path in mt-daapd-ssc.sh:
#!/opt/bin/bash -> #!/bin/bash
/t0m
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.