Commit Graph

55 Commits

Author SHA1 Message Date
aler9
ae3e3b19c0 client: add RTPInfo() 2021-05-10 20:58:18 +02:00
aler9
e51ee76d92 server: rewrite conn and session closing with contexts to improve reliability 2021-05-10 19:38:02 +02:00
aler9
e75b14c608 client: add DialReadContext, DialPublishContext 2021-05-10 18:11:41 +02:00
aler9
c7bdded8f0 client: apply context to connOpen 2021-05-10 18:04:26 +02:00
aler9
5eb82448a7 client: remove channel from ReadFrames() 2021-05-10 17:59:49 +02:00
aler9
510bcfe2d7 client: simplify tests 2021-05-10 17:29:24 +02:00
aler9
f8ef945dae client: allow to call client.Close() always 2021-05-10 17:18:41 +02:00
aler9
a8c6af39e3 split configuration into sections 2021-05-07 15:34:54 +02:00
aler9
8846b9f5f5 rename ClientConf into Client 2021-05-04 16:51:20 +02:00
aler9
805d578b6c fix inversion of track data that happened randomly in case of multiple tracks (https://github.com/aler9/rtsp-simple-server/issues/353) 2021-04-17 19:48:00 +02:00
aler9
fc3d84be56 client: apply TCP timeout correctly (https://github.com/aler9/rtsp-simple-server/issues/335) 2021-04-04 19:40:21 +02:00
aler9
1a229e1385 client: fix automatic protocol switching when publishing 2021-04-03 17:35:32 +02:00
aler9
1f8d7a9ae7 client: build track URLs by using Content-Base, when provided by server 2021-04-03 16:23:14 +02:00
aler9
0e6811a178 client: allow calling ReadFrames() when publishing 2021-03-28 22:05:24 +02:00
aler9
1c88a7fee9 client: allow calling WriteFrame() when reading 2021-03-28 17:59:55 +02:00
aler9
4c5742354c client: move all track related variables under clientConnTrack 2021-03-28 17:05:38 +02:00
aler9
2ed4b079e8 server: add new test 2021-03-28 16:04:29 +02:00
aler9
889e05f4db add RTCP tests 2021-03-28 15:16:31 +02:00
aler9
547cb8d4c5 clientconn: change internal variable name 2021-03-28 11:49:06 +02:00
aler9
2df9029f01 client: switch to TCP if no UDP packets have been received within a timeout (https://github.com/aler9/rtsp-simple-server/issues/173) 2021-03-26 23:02:36 +01:00
aler9
adbdcc37ba client: avoid copying client internally 2021-03-26 13:55:51 +01:00
aler9
7879d3d533 client: do not exit in case UDP packets are being received from a single track, improving UDP robustness 2021-03-26 12:18:32 +01:00
aler9
437b4cc87e move errors into subpackage 2021-03-21 11:19:35 +01:00
aler9
c0e045071b export most client errors 2021-03-21 10:57:48 +01:00
aler9
da82a2dcc3 export most server errors 2021-03-21 09:59:43 +01:00
aler9
1c2509cb54 update golangci-lint 2021-03-20 16:15:38 +01:00
aler9
bc18883084 update golangci-lint 2021-03-20 14:14:34 +01:00
aler9
25772271db headers: rewrite initializers as members of their structs 2021-03-20 09:55:04 +01:00
aler9
99ef9a9cc0 client: add RTPInfo() 2021-03-14 12:26:29 +01:00
aler9
557fadcd3c add parameter ReadBufferSize to set the read buffer size 2021-02-18 22:59:07 +01:00
aler9
30b43a9ead support servers which don't provide the server-port field (#21) 2021-01-21 09:02:15 +01:00
aler9
b9dfe1b310 client: support servers which don't provide UDP ports (#21) 2021-01-20 23:26:49 +01:00
aler9
c6e0294e1c client: add error message in case of zero server ports 2021-01-20 22:59:36 +01:00
aler9
bc5b3d9cbc ServerConn: save announced tracks 2021-01-18 22:21:36 +01:00
aler9
7d91c13972 perform frame readings and writings in separate routines, in order to increase UDP throughput and avoid freezes caused by a single laggy reader (https://github.com/aler9/rtsp-simple-server/issues/125) (https://github.com/aler9/rtsp-simple-server/issues/162) 2021-01-09 22:59:41 +01:00
aler9
5b97a64a75 ServerConn: add RTCP receivers 2021-01-06 22:20:57 +01:00
aler9
453dd19f90 add TestServerPauseMultiple, TestServerPlayMultiple 2021-01-06 19:19:39 +01:00
aler9
d0834e7446 rename Response and Request's Content into Body 2021-01-06 18:48:29 +01:00
aler9
3aac61b762 rename InterleavedFrame.Content into Payload 2021-01-06 18:40:02 +01:00
aler9
8cd0b902ed add ServerConn states 2021-01-06 15:34:54 +01:00
aler9
8e70ac4d59 normalize names 2021-01-06 12:26:07 +01:00
aler9
a53ba70dbc replace content with payload 2021-01-04 21:50:36 +01:00
aler9
b2f56c9814 auth: change NewSender signature 2020-12-31 17:32:19 +01:00
aler9
a6ae5f79de auth: rename client into sender, server into validator 2020-12-31 17:22:54 +01:00
aler9
9e8715d4ad ClientConn: add user agent 2020-12-17 12:48:02 +01:00
aler9
775c512465 remove pointer from Write() methods 2020-12-16 11:08:55 +01:00
aler9
27636bc810 client: force TCP if encryption is active 2020-12-14 23:06:50 +01:00
aler9
61318d7f96 implement client TLS support 2020-12-14 22:49:47 +01:00
aler9
2c7dbe2009 require that all tracks have a valid clock rate 2020-12-09 22:46:49 +01:00
aler9
07aefbcd5d add ClientConf.OnRequest, ClientConf.OnResponse 2020-12-08 11:54:38 +01:00