Commit Graph

217 Commits

Author SHA1 Message Date
Alessandro Ros
4d3d6bc108 prevent RTPPacketsJitter from being NaN (#670) 2024-12-25 15:32:16 +01:00
Alessandro Ros
5d44205cbe rename RTPJitter into RTPPacketsJitter (#669) 2024-12-25 15:14:40 +01:00
Alessandro Ros
87c6d81053 add statistics to Client, ServerSession, ServerConn, ServerStream (#556) (#656) 2024-12-25 13:30:08 +01:00
Alessandro Ros
5506eb2f7f use a single TCP outgoing buffer each client / session (#665)
this saves memory.
2024-12-24 10:24:24 +01:00
Alessandro Ros
8f74559616 close connections in case of write errors (#613) (#655) 2024-12-14 13:45:11 +01:00
Alessandro Ros
a19432fd87 bump Golang to 1.23 (#610) 2024-11-04 13:39:10 +01:00
Alessandro Ros
01fd8033a2 use new time decoder in place of deprecated one (#643) 2024-11-04 13:26:14 +01:00
Alessandro Ros
9ac016c5dd client: fix resetting time decoder (#642) 2024-11-04 13:21:49 +01:00
Kevin Wang
21e06b0f68 Support relative Content-Base paths (#636) 2024-10-23 22:22:41 +02:00
Alessandro Ros
2ca0bffa20 use native timestamps instead of time.Duration (#627)
this improves timestamp precision
2024-10-07 15:58:43 +02:00
Alessandro Ros
c9bf79f340 client: omit mode from Transport header (#611) (#574) (#614) 2024-09-09 10:28:34 +02:00
Alessandro Ros
ff5bda0e67 client: prevent switching protocol when protocol is fixed to UDP (#607) 2024-08-25 20:40:56 +02:00
Alessandro Ros
363b48e632 update golangci-lint (#554) 2024-04-28 18:20:25 +02:00
Alessandro Ros
9cd54f56b4 client: prevent UDP listener from closing twice (#515) 2024-01-31 22:10:31 +01:00
Alessandro Ros
2d0c530d97 replace new() with initialize() (#490) 2023-12-26 12:48:35 +01:00
Alessandro Ros
f78b04cf4e client: support writing to ONVIF back channels (#101) (#462) 2023-11-15 13:20:29 +01:00
Alessandro Ros
01b3bfc6ab move url.URL into base.URL (#459) 2023-11-07 16:51:45 +01:00
Alessandro Ros
7632ae5615 client: support receiving responses with spaces in CSeq (#437) (#446) 2023-10-22 13:58:12 +02:00
Alessandro Ros
78198a588b fix reading and writing multicast packets in case of multiple interfaces (#413)
(https://github.com/bluenviron/mediamtx/issues/2029)
2023-09-11 23:36:53 +02:00
Alessandro Ros
8fdc7193f2 client: support cameras that don't reply to keepalives (#412)
(https://github.com/bluenviron/mediamtx/issues/2302)
2023-09-11 17:49:46 +02:00
Alessandro Ros
d273452e83 client: accept responses only if their CSeq corresponds to requests (#410) 2023-09-10 18:26:32 +02:00
Alessandro Ros
dfa09dd125 client: log every incoming response (#409) 2023-09-10 18:08:06 +02:00
Alessandro Ros
4495e7d689 move most errors into pkg/liberrors (#408) 2023-09-10 17:32:16 +02:00
Alessandro Ros
af14144d2c client: fix enforcing timeout to responses (#406) 2023-09-10 16:45:12 +02:00
Alessandro Ros
e9295e073b client: add OnServerRequest and OnServerResponse callbacks (#405) 2023-09-10 16:28:10 +02:00
Alessandro Ros
3bdae4ed46 make WritePacket*() return errors when write queue is full (#388) 2023-08-26 18:09:45 +02:00
Alessandro Ros
b97aed00fe remove ReadBufferCount; rename WriteBufferCount into WriteQueueSize (#384) 2023-08-26 12:57:33 +02:00
aler9
67062787f6 Merge branch 'main' into v4 2023-08-25 16:10:42 +02:00
Alessandro Ros
72aa55a012 log decode errors and lost packets by default (#380) 2023-08-25 16:08:28 +02:00
Alessandro Ros
6f961c1bbb client: stop main routine immediately in case of a read error (#379) 2023-08-24 18:20:22 +02:00
Alessandro Ros
ed4bbe3986 client: support server-sent requests (#93) (#378) 2023-08-24 16:07:09 +02:00
Alessandro Ros
29ddbbbbf5 align PacketPTS() and PacketNTP(); add example (#374) 2023-08-22 20:53:23 +02:00
aler9
70c719a211 allow publishers to set the title of the stream
(https://github.com/bluenviron/mediamtx/issues/979)
2023-08-22 18:59:39 +02:00
aler9
cdbecb1f5d allow setting additional properties of streams through description.Stream 2023-08-22 16:46:18 +02:00
aler9
8b047b545b decode RTP time globally 2023-08-17 13:41:01 +02:00
aler9
bfef17b717 add Client.PacketNTP(), ServerSession.PacketNTP() 2023-08-17 13:23:16 +02:00
aler9
4ad57d6a75 preserve NTP when generating sender reports 2023-08-17 13:23:16 +02:00
aler9
939c065f6f client: invert arguments of Setup() and SetupAll() 2023-08-17 13:23:15 +02:00
aler9
5e5a21240d rename pkg/formats into pkt/format 2023-08-16 13:26:17 +02:00
aler9
7532484041 add option MaxPacketSize to Client and Server 2023-08-16 13:26:17 +02:00
aler9
1a3e6ad092 remove return value from Close() 2023-08-16 13:26:17 +02:00
aler9
e26ccf0858 remove deprecated functions 2023-08-16 13:26:17 +02:00
aler9
80106144e6 bump to v4 2023-08-16 13:26:17 +02:00
aler9
482b047999 server: allow ServerSession.WritePacket*() to return an error 2023-08-14 12:13:35 +02:00
aler9
18ddae4c50 enable errcheck 2023-08-13 16:29:53 +02:00
Alessandro Ros
ed536f1d63 export callback prototypes (#333) 2023-07-28 21:05:10 +02:00
Alessandro Ros
294dcf8a52 client: deprecate RedirectDisable (#324) 2023-07-09 15:00:27 +02:00
Alessandro Ros
37dc292ee5 client: support URLs with IPv6 and no port (#313) (#316) 2023-06-17 11:45:05 +02:00
Alessandro Ros
ccf42f49c7 fix isChannelPairInUse() (#306) 2023-06-09 12:34:10 +02:00
Alessandro Ros
e583556d86 server, client: allow using odd interleaved IDs (#304)
(https://github.com/bluenviron/mediamtx/issues/1762)
2023-06-08 23:40:37 +02:00