Commit Graph

69 Commits

Author SHA1 Message Date
Saxon Nelson-Milton 27c90ad852 running go fmt over repos 2020-12-17 21:38:10 +10:30
Scott e116e197ae Changed all %v's to %w's where appropriate 2019-12-04 14:12:20 +10:30
Saxon 39a573e10b protocol/rtsp: removed cmd/record as revid can do what this did 2019-05-21 01:51:14 +09: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 9e07984848 protocol/rtsp: added package comment. 2019-05-09 12:17:11 +09:30
Saxon e823ebca48 protocol/rtsp: using strings.Prefix in ReadResponse to check that protocol is correct 2019-04-30 21:43:04 +09:30
Saxon a025d55d81 protocol/rtsp: using Fprintf with strings.Builder in Request.String() and Response.String() 2019-04-30 21:41:46 +09:30
Saxon 960d0b4477 protocol/rtsp/cmd/record: using select rather than for loop to wait at end of record program 2019-04-30 21:37:06 +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 944fe00e5d protocol/rtsp: commented TestReadResponse 2019-04-30 02:32:24 +09:30
Saxon 401376c059 protocol/rtsp: expected CSeq key is just Cseq now to match ReadResponse result. 2019-04-30 02:19:34 +09:30
Saxon c552238da5 protocol/rtsp: added some commenting to TestReadResponse and required helper function 2019-04-29 20:18:07 +09:30
Saxon 86bf4cdb90 protocol/rtsp: TestReadResponse now working 2019-04-29 19:28:18 +09:30
Saxon d2b76fab36 protocol/rtsp: wrote test ReadResponse, but work in progress 2019-04-29 18:21:59 +09:30
Saxon 0a27395aea protocol/rtsp: doing length check in same if but before RTSP protocol check 2019-04-29 13:35:58 +09:30
Saxon 64f6a3d814 protocol/rtsp: used utter/dump to get ASCII text as well 2019-04-29 13:34:09 +09:30
Saxon eac5652f1b protocol/rtsp: in ReadResponse response length check comes before protocol check 2019-04-29 13:19:32 +09:30
Saxon ba7e768269 protocol/rtsp/cmd/record: sess => clt in record 2019-04-29 13:16:15 +09:30
Saxon dd58851e6c protocol/rtsp: added todo to test client connect retry regarding use of generalised retry utility when available. 2019-04-29 13:13:12 +09:30
Saxon a783b2052e protocol/rtsp: for test, read buf size is now const called max reequest size 2019-04-29 13:11:27 +09:30
Saxon 66bc6bbe33 protocol/rtsp: only giving Sscanf s[5:] and then checking number of decimals read as well as error 2019-04-29 13:08:05 +09:30
Saxon 77e5d234de protocol/rtsp: doing RTSP and response length check in same if 2019-04-29 13:03:39 +09:30
Saxon ba5a0d898c protocol/rtsp: removed status 2019-04-29 13:01:17 +09:30
Saxon 6605ee7295 protocol/rtsp: general naming clean up 2019-04-29 12:39:58 +09:30
Saxon d91995a1cf protocol/rtsp: using bufio.Scanner 2019-04-28 14:04:45 +09:30
Saxon d7c2421146 protocol/rtsp: fixed sscanf in ReadResponse 2019-04-28 13:51:25 +09:30
Saxon fa7c3044f3 protocol/rtsp: simplified ReadResponse further by using only one sscanf 2019-04-28 13:23:35 +09:30
Saxon 9abcfb138b protocol/rtsp: checking error from scans 2019-04-28 12:27:54 +09:30
Saxon 39d0b5d6da protocol/rtsp: using sscanf to parse response 2019-04-28 02:35:13 +09:30
Saxon 26d05d1bd4 protocol/rtsp/cmd/record: removed stream binary 2019-04-28 01:44:33 +09:30
Saxon a57d3f66ff protocol/rtsp: using int rather than int64 for Response.ConentLength 2019-04-28 01:32:44 +09:30
Saxon 94660e730b protocol/rtsp: using strings.Builder to write String formats for Request and Response 2019-04-28 01:29:47 +09:30
Saxon eb6b5a04b0 protocol/rtsp: indicate that minResponse size is in bytes 2019-04-28 00:58:33 +09:30
Saxon 31508f8940 protocol/rtsp: removed pre-existing license 2019-04-28 00:57:40 +09:30
Saxon a62adca171 protocol/rtsp/cmd: renamed stream to record 2019-04-28 00:56:44 +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 f2b941394b protocol/rtsp: fixed read response bug 2019-04-26 19:51:00 +09:30
Saxon 999eab21ab protocol/rtsp: cleaned up ReadResponse 2019-04-26 19:46:03 +09:30
Saxon 3e17016390 protocol/rtsp: updated licensing 2019-04-26 16:01:57 +09:30
Saxon f0a1a866dd protocol/rtsp: removed writeRequest receiver method 2019-04-26 15:09:59 +09:30
Saxon 4998d8d4d6 protocol/rtsp/cmd/stream: using NewClient rather than NewSession 2019-04-26 14:35:25 +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