audio1;563029 Wrote: 
> OK, that's the kind of information I want to know about.  Can you
> elaborate, please?  I'm happy to learn.

Pushing 'next' on my radio generates the following:

POST /cometd HTTP/1.1..User-Agent: SqueezePlay-baby/7.6.0-r8934
(armv5tejl)..Content-Length: 142..Host: <ip>:9000..Content-Type:
text/json..Accept-Language:
en....[{"id":383,"data":{"request":["00:04:20:xx:

xx:xx",["button","jump_fwd"]],"response":"\/fdbe4a6b\/slim\/request"},"channel":"\/slim\/request"}].}



ie, "user pressed 'jump_fwd' button"

Server responds two ways:
Direct response to the POST:
HTTP/1.1 200 OK..Server: Squeezebox Server (7.6.0 -
30967)..Cache-Control: no-cache..Pragma: no-cache..Content-Length:
72..Content-Type: application/json..Expires: -1..X-Time-To-Serve:
0.0647580623626709....[{"clientId":null,"id":387,"channel":"/slim/request","successful":true}]



And SlimProto:
.Qstrms1m????...0.......#(....GET
/stream.mp3?player=00:04:20:xx:xx:xx HTTP/1.0....                      



Which is basically "Please dump the existing buffered stream, and go
get this stream"

Player responds by executing the GET the server told it to do:
GET /stream.mp3?player=00:04:20:xx:xx:xx HTTP/1.0....                



Not very complicated.  I am probably missing some stuff, I am at work,
and it is spammy
to sniff my home network from here.  (And, yes, my radio is next to me
at work, but on a different
network where bandwidth is cheaper and since that is on a cable modem,
as is my home system,
the latency is virtually nothing.)

If I was syncing, there would be more complexity keeping track of where
multiple
players were in the output stream, but I'm not at the moment.

The newer players 'mostly' use HTTP with some low level stuff passed
back as slimproto,
(which is documented in the server docs).  The stream, however, was
your question, and that is
just HTTP.


-- 
snarlydwarf
------------------------------------------------------------------------
snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179
View this thread: http://forums.slimdevices.com/showthread.php?t=80521

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to