Commit Graph

1908 Commits

Author SHA1 Message Date
bluenviron-bot
db702b1fc2 bump golangci-lint to 2.6.1 (#939) 2025-11-09 22:53:32 +01:00
Alessandro Ros
b6f80fd5f2 fix SP payload of MIKEY messages (#827) (#935)
fill PayloadSPPolicyParamTypeAuthTagLen and
PayloadSPPolicyParamTypeSessionAuthKeyLen properly.
2025-11-02 17:04:51 +01:00
Alessandro Ros
98f0331637 server: add NetListener() (#833) (#934)
this allows to obtain the underlying net.Listener
2025-11-02 17:04:01 +01:00
Alessandro Ros
1214bdc17e server: fix timeout when reading with Media Foundation (bluenviron/mediamtx#5090) (#932) 2025-11-02 17:03:44 +01:00
Tristan Matthews
69481ce0bd Apply modernize changes (#917) 2025-11-02 17:00:34 +01:00
bluenviron-bot
24c512c583 bump golangci-lint to 2.6.0 (#933) 2025-11-02 16:13:08 +01:00
Alessandro Ros
97bc53a1fa update workflows (#931) 2025-10-26 16:46:24 +01:00
Alessandro Ros
59474a8fa3 add and use readbuffer.SetReadBuffer (#930) 2025-10-26 11:12:19 +01:00
Alessandro Ros
396998aa4a support RTSP responses with empty status message (#807) (#928) 2025-10-26 10:36:50 +01:00
dependabot[bot]
95ca014456 Bump github.com/bluenviron/mediacommon/v2 from 2.5.0 to 2.5.1 (#927)
Bumps [github.com/bluenviron/mediacommon/v2](https://github.com/bluenviron/mediacommon) from 2.5.0 to 2.5.1.
- [Commits](https://github.com/bluenviron/mediacommon/compare/v2.5.0...v2.5.1)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/mediacommon/v2
  dependency-version: 2.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v5.1.1
2025-10-21 18:56:23 +02:00
ProtoTess
b4355d3099 use AVP profile when scheme is RTSPS and protocol is TCP (#916)
plus, allow to pick between AVP and SAVP when scheme is RTSPS and protocol is TCP.

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2025-10-21 18:46:24 +02:00
Alessandro Ros
cb169d3924 normalize workflows (#926) 2025-10-21 18:19:11 +02:00
Alessandro Ros
dd00a0a356 fix documentation (#924) 2025-10-21 18:05:09 +02:00
Alessandro Ros
b104968d33 add missing defer close in examples (#925) 2025-10-21 18:04:55 +02:00
Alessandro Ros
2db67e7195 improve tests (#923) 2025-10-20 21:20:15 +02:00
Alessandro Ros
2b3d77d465 server: fix crash when calling PAUSE (#922)
this happened when playing and protocol is UDP-multicast.
2025-10-20 14:12:14 +02:00
Alessandro Ros
1486bce64a server: fix timeout when recording with FFmpeg and UDP (bluenviron/mediamtx#5100) (#921) 2025-10-20 14:11:51 +02:00
Alessandro Ros
5e540b0c2b normalize GitHub actions (#919) 2025-10-19 12:01:46 +02:00
dependabot[bot]
f1ca69c4d4 Bump github.com/pion/rtcp from 1.2.15 to 1.2.16 (#918)
Bumps [github.com/pion/rtcp](https://github.com/pion/rtcp) from 1.2.15 to 1.2.16.
- [Release notes](https://github.com/pion/rtcp/releases)
- [Changelog](https://github.com/pion/rtcp/blob/master/.goreleaser.yml)
- [Commits](https://github.com/pion/rtcp/compare/v1.2.15...v1.2.16)

---
updated-dependencies:
- dependency-name: github.com/pion/rtcp
  dependency-version: 1.2.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-17 16:51:33 +02:00
dependabot[bot]
d1f853ca4c Bump github.com/bluenviron/mediacommon/v2 from 2.4.3 to 2.5.0 (#913)
Bumps [github.com/bluenviron/mediacommon/v2](https://github.com/bluenviron/mediacommon) from 2.4.3 to 2.5.0.
- [Commits](https://github.com/bluenviron/mediacommon/compare/v2.4.3...v2.5.0)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/mediacommon/v2
  dependency-version: 2.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v5.1.0
2025-10-13 18:10:30 +02:00
Alessandro Ros
449624b60f server: add idle timeout (#912)
this prevents idle connections and sessions from stacking up.
2025-10-13 18:06:27 +02:00
dependabot[bot]
fbbaeea390 Bump github.com/pion/rtp from 1.8.22 to 1.8.23 (#908)
Bumps [github.com/pion/rtp](https://github.com/pion/rtp) from 1.8.22 to 1.8.23.
- [Release notes](https://github.com/pion/rtp/releases)
- [Changelog](https://github.com/pion/rtp/blob/master/.goreleaser.yml)
- [Commits](https://github.com/pion/rtp/compare/v1.8.22...v1.8.23)

---
updated-dependencies:
- dependency-name: github.com/pion/rtp
  dependency-version: 1.8.23
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-11 12:36:29 +02:00
dependabot[bot]
4cee3b1781 Bump golang.org/x/net from 0.44.0 to 0.46.0 (#910)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.44.0 to 0.46.0.
- [Commits](https://github.com/golang/net/compare/v0.44.0...v0.46.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.46.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-11 12:36:22 +02:00
Alessandro Ros
611aa6ff02 update README (#907) 2025-10-01 12:14:53 +02:00
Dan Nicholls
5ab10e3e4e Fix: invalid SDP: sdp: invalid syntax c=IN (#906)
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2025-10-01 12:14:05 +02:00
dependabot[bot]
2750e92d2d Bump github.com/pion/srtp/v3 from 3.0.7 to 3.0.8 (#905)
Bumps [github.com/pion/srtp/v3](https://github.com/pion/srtp) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/pion/srtp/releases)
- [Changelog](https://github.com/pion/srtp/blob/master/.goreleaser.yml)
- [Commits](https://github.com/pion/srtp/compare/v3.0.7...v3.0.8)

---
updated-dependencies:
- dependency-name: github.com/pion/srtp/v3
  dependency-version: 3.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-27 13:39:01 +02:00
bluenviron-bot
9dc9245ad6 bump golangci-lint to 2.5.0 (#904) v5.0.1 2025-09-22 09:48:21 +02:00
Alessandro Ros
6750a1eb8a sdp: fix compatibility with a Uniview camera (bluenviron/mediamtx#5008) (#903) 2025-09-21 18:08:27 +02:00
Alessandro Ros
1dd27b250c sdp: add labels to test cases (#902) 2025-09-21 17:20:51 +02:00
Alessandro Ros
da8f2c69b2 format code (#900) v5.0.0 2025-09-18 10:53:38 +02:00
dependabot[bot]
dc5d990699 Bump github.com/bluenviron/mediacommon/v2 from 2.4.2 to 2.4.3 (#899)
Bumps [github.com/bluenviron/mediacommon/v2](https://github.com/bluenviron/mediacommon) from 2.4.2 to 2.4.3.
- [Commits](https://github.com/bluenviron/mediacommon/compare/v2.4.2...v2.4.3)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/mediacommon/v2
  dependency-version: 2.4.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-18 10:53:06 +02:00
Alessandro Ros
6107dea9a0 add RTSP-over-WebSocket (#891) (#898) 2025-09-17 21:30:11 +02:00
Alessandro Ros
1616c8c634 rename Transport2 into Transport (#897) 2025-09-16 12:28:28 +02:00
Alessandro Ros
25aecc7b96 server: prevent using UDP when tunneling through HTTP (#896) 2025-09-16 12:19:54 +02:00
Alessandro Ros
425fce20fc rename Transport* into Protocol* (#895) 2025-09-16 12:06:50 +02:00
Alessandro Ros
ec81d388d1 switch to v5 (#890)
* switch from v4 to v5

* remove deprecated entities

* remove "2" suffix from entities

* rename TransportProtocol into Protocol
2025-09-16 11:46:52 +02:00
Alessandro Ros
f8649f6cf1 fix race condition in tests (#894) 2025-09-16 11:18:47 +02:00
Alessandro Ros
8c7e4320bc server: fix panic due to regression in #887 (#892)
This happened when writing a TCP packet to a conn after a read error.
2025-09-16 10:36:06 +02:00
Alessandro Ros
3f446ed08d client: fix crash when opening UDP listeners (#893) 2025-09-16 10:35:31 +02:00
Alessandro Ros
ead4471b5c support RTSP-over-HTTP (#433) (#768) (#887) 2025-09-15 19:00:50 +02:00
dependabot[bot]
73474c7569 Bump github.com/bluenviron/mediacommon/v2 from 2.4.1 to 2.4.2 (#889)
Bumps [github.com/bluenviron/mediacommon/v2](https://github.com/bluenviron/mediacommon) from 2.4.1 to 2.4.2.
- [Commits](https://github.com/bluenviron/mediacommon/compare/v2.4.1...v2.4.2)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/mediacommon/v2
  dependency-version: 2.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-15 18:55:27 +02:00
Alessandro Ros
0e674daa7b client: remove automatic SNI support (#888)
SNI support should be enabled by properly filling TLSConfig.
2025-09-15 15:54:37 +02:00
dependabot[bot]
0e425a863b Bump golang.org/x/net from 0.43.0 to 0.44.0 (#885) 2025-09-10 08:46:54 +02:00
Alessandro Ros
9259df7cff modernize code (#884) 2025-09-07 16:05:13 +02:00
Alessandro Ros
9db34842c8 move host resolution from headers to client/server (#883) 2025-09-07 15:39:02 +02:00
Alessandro Ros
c466c342ba expose transport details (#850)
add Client.Transport, ServerConn.Transport ServerSession.Transport
2025-09-06 16:28:40 +02:00
Alessandro Ros
3c2625c7cf make most methods thread safe (#882)
Client: Stats

ServerConn: Session, Stats

ServerSession: State, Stats, Medias, Path, Query, Stream,
SetuppedSecure, SetuppedTransport, AnnouncedDescription
2025-09-06 15:42:07 +02:00
Alessandro Ros
702cd0a70f server: remove Setupped* prefix from most methods (#881) 2025-09-05 23:30:20 +02:00
Alessandro Ros
65da49ffc0 optimize code (#878)
* remove unused code

* initialize UDP listeners and SRTP before initializing medias

* make rtpSender and rtpReceiver available before PLAY / RECORD

* use writerMutex to protect writer only
2025-09-05 23:11:51 +02:00
nicoske
1bc89661eb Fix SDP parsing for repeat time field with no offsets (#880)
Co-authored-by: Nicolas BRAINEZ <nicolas.brainez@ext.ec.europa.eu>
2025-09-05 23:04:30 +02:00