nodetunes
nodetunes copied to clipboard
AirTunes v2 Server implementation
Should get rid of these "reloads" of `debug` after it's supported (https://github.com/visionmedia/debug/issues/150) - https://github.com/stephen/nodetunes/blob/master/lib/rtsp.js#L13 - https://github.com/stephen/nodetunes/blob/master/lib/server.js#L24 - https://github.com/stephen/nodetunes/blob/master/lib/rtp.js#L11
I don't think this is being handled correctly at all, even if it works. There's an Audio-Latency header here that isn't being used. Might be related to https://github.com/stephen/airsonos/issues/44 ?)
Currently we do this: ``` res.set('RTP-Info', 'rtptime=1147914212'); // FIXME ```
I think just for volume volume - should allow nodetunes to set a default volume.
Currently, nodetunes doesn't use the RTP timing port - should be querying every ~3 seconds.
Currently using [portastic](https://github.com/cranic/node-portastic) to assign ports for UDP/RTP stream. Problem is that portastic doesn't detect UDP port usage (not sure how to do this in general?), so portastic will likely...
Need to add support for RTP payload (sending 85, receiving 86). Might need to re-do buffering scheme to make this work...
When the SequenceNumber "overflows" - wraps from 65536 to 0, the staging/wait buffers dequeue the 0, 1, 2.. etc. SequenceNumbers before the final sequences in the 655.. range. Causes audio...