Commit Graph

16 Commits

Author SHA1 Message Date
Saxon Nelson-Milton 27c90ad852 running go fmt over repos 2020-12-17 21:38:10 +10:30
Saxon 3ff726e439 revid & cmd/revid-cli: removed need for command line flags to specify addresses for RTP and RTCP.
Removed the command line flags that were used to specifiy local and remote addresses for RTP and RTCP. These are now
derived from the initial RTSP connection and also from the RTSP SETUP method reply.
2019-05-20 19:45:59 +09:30
Saxon bc6a0ae55e revid: using RTCP client to maintain RTP stream from RTSP server
Now adopting an RTCP client so that the RTP stream from the RTSP server can be maintained past 1 minute.
This change involved some refactor.
The rtcp.NewClient signature has been simplified. There is now a default send interval and name for use
in the source description in the receiver reports. These can be customised if required with the new
SetSendInterval and SetName funcs. The rtcp.NewClient signature now takes an rtp.Client, so that it
can get information from the RTP stream, like most recent sequence number. As a result of this requirement
the rtp package parse file has been extended with some functions for parsing out the sequence number and
ssrc from RTP packets and the RTP client provides getters for these things.
2019-05-20 18:14:27 +09:30
Saxon 6a9d2755d1 protocol/rtsp: don't need to wrap conn in bufio.Reader() 2019-04-30 21:36:06 +09:30
Saxon a4da3dab15 protocol/rtsp/client.go: using u instead of url from url.Parse in Client.Setup() 2019-04-30 21:33:35 +09:30
Saxon 8196df52d7 protocol/rtsp: added newline after file headers 2019-04-30 21:32:05 +09:30
Saxon 6605ee7295 protocol/rtsp: general naming clean up 2019-04-29 12:39:58 +09:30
Saxon 01a22ffc38 protocol/rtsp: Client.Do r parameter now req. 2019-04-28 00:54:44 +09:30
Saxon 07e7235dc4 protocol/rtsp: using string literals for request methods 2019-04-28 00:53:47 +09:30
Saxon 2f752d5b7f protocol/rtsp: NewClient u parameter now addr and client instance not s now c 2019-04-28 00:51:06 +09:30
Saxon 77094acc67 protocol/rtsp: Client.session => Client.sessionID 2019-04-26 19:53:08 +09:30
Saxon f0a1a866dd protocol/rtsp: removed writeRequest receiver method 2019-04-26 15:09:59 +09:30
Saxon 14cb6f7f07 protocol/rtsp: reflect go net.http package patterns
Request now has a Write receiver method that will write to the passed io.Writer. Client now has Do method that will send the request and return the respons and any errors. Also Renamed the Client
field to Session, which was mistakenly changed.
2019-04-26 14:20:58 +09:30
Saxon 4e98b4d2ea protocol/rtsp: renamed urlStr to addr 2019-04-26 14:08:58 +09:30
Saxon cd18d9f5a7 protocol/rtsp: removed Client field from client struct as not useful 2019-04-26 14:07:29 +09:30
Saxon a0fb299b06 protocol/rtsp: moved client functionality into client.go file 2019-04-26 13:57:18 +09:30