Commit Graph

15 Commits

Author SHA1 Message Date
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 a0fb299b06 protocol/rtsp: moved client functionality into client.go file 2019-04-26 13:57:18 +09:30
Saxon 9169afe34f protocol/rtsp: general clean up 2019-04-25 15:30:28 +09:30
Saxon f3f3be5fc6 protocol/rtsp: completed test for rtsp
Completed test to check that each method we support works and can produce valid requests. The requests are compared to requests that have been proven valid. This test also checks that the RTSP
client communicates over tcp correctly. i.e. we have set up a client and server, and we check that this communication happens correctly.
2019-04-25 14:46:21 +09:30
Saxon a256dc9133 protocol/rtsp: made rtsp/cmd/stream functional 2019-04-23 16:22:58 +09:30
Saxon 34c59c95d6 protocol/rtsp: working on main.go in rtsp/cmd/stream
Added file header to main.go, and modified rtsp.go to work with cmd/stream/main.go. This change modifies writeRequest, which now takes a *url.URL. This means the Setup() method can parse a new
URL that contains a given track, and then give this to writeRequest.
2019-04-23 15:49:54 +09:30
Saxon d03ae3ff7e protocol/rtsp: fixed rtsp.go file header indentation 2019-04-23 15:33:07 +09:30
Saxon e87eadf8fd protocol/rtsp/rtsp.go: commenting and general clean up. 2019-04-17 18:31:03 +09:30
Saxon c9082c1b4c protocol/rtsp/rtsp.go: put tcp dial in new session
tcp dial is now in new session, firstly so that we don't have to do the s.conn == nil check and also so that we dont't have to pass around the url everywhere.
2019-04-17 12:45:02 +09:30
Saxon 02c11c234f protocol/rtsp/rtsp.go: added back beatgammits structs
Added them back because i realised I can't use http Requests and Responses and the accompanying methods because then this wouldn't be the RTSP protocol, it would be the HTTP protocol, which is not what we're doing.
2019-04-17 12:18:23 +09:30
Saxon 0543cb0968 protocol/rtsp/rtsp.go: got rid of NewRequest and put logic into writeRequest 2019-04-17 10:20:49 +09:30
Saxon 948e9a67e1 protocol/rtsp/rtsp.go: simplified RTSP method functions wrap a single writeRequest func 2019-04-17 09:05:34 +09:30
Saxon cd7e2ce3f3 protocol/rtsp: removed response writer interface, which was just http.ResponseWriter 2019-04-17 07:51:34 +09:30
Saxon 9de1b541a9 protocol/rtsp: removed unused stuff
Firstly removed unused RTSP method string consts. Also removed all the unused http response codes. Removed
ReadRequest, as this was also not used.
2019-04-16 23:32:50 +09:30
Saxon 4a97a626a0 protocol/rtsp: added beatgammits pkg and also my stream/main.go program
Most of this is unmodified except for the stream/main.go program. I am going to use this as a test that simply streams from an RTSP server to vlc.
2019-04-16 22:47:13 +09:30