1882 Commits

Author SHA1 Message Date
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
James Ford
a8513af402 Fix typo when identifying KLV packets as SMPTE336M-encoded (#877) 2025-09-05 19:32:28 +02:00
dependabot[bot]
6add5809c2 Bump actions/setup-go from 5 to 6 (#875)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-05 18:18:48 +02:00
dependabot[bot]
d3f2f8dead Bump actions/github-script from 7 to 8 (#876)
Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 8.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v7...v8)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-05 18:18:39 +02:00
Alessandro Ros
1f543a0331 rename rtcpreceiver into rtpreceiver, rtcpsender into rtpsender (#874)
These utilities were originally meant to handle RTCP only, now they are
in charge of every QoS mechanism.
2025-09-04 19:06:56 +02:00
Alessandro Ros
cf2ff2b564 add Transport.Profile, media.Profile (#873)
this will allow to support AVPF in the future.
2025-09-04 18:08:51 +02:00
dependabot[bot]
d2cb011812 Bump github.com/pion/rtp from 1.8.21 to 1.8.22 (#872)
Bumps [github.com/pion/rtp](https://github.com/pion/rtp) from 1.8.21 to 1.8.22.
- [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.21...v1.8.22)

---
updated-dependencies:
- dependency-name: github.com/pion/rtp
  dependency-version: 1.8.22
  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-04 12:43:12 +02:00
dependabot[bot]
3981f6c3ff Bump github.com/pion/sdp/v3 from 3.0.15 to 3.0.16 (#871)
Bumps [github.com/pion/sdp/v3](https://github.com/pion/sdp) from 3.0.15 to 3.0.16.
- [Release notes](https://github.com/pion/sdp/releases)
- [Changelog](https://github.com/pion/sdp/blob/master/.goreleaser.yml)
- [Commits](https://github.com/pion/sdp/compare/v3.0.15...v3.0.16)

---
updated-dependencies:
- dependency-name: github.com/pion/sdp/v3
  dependency-version: 3.0.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-09-03 11:05:10 +02:00
Alessandro Ros
367eb4dffd fix encoding and decoding of NTP fractional part (#869) (#870)
Fractional part now is in 1/(2^32) units, while it was in 1/(1^9) units.
2025-08-31 12:36:17 +02:00
dependabot[bot]
d5e677fc72 Bump github.com/stretchr/testify from 1.11.0 to 1.11.1 (#868) 2025-08-28 12:55:09 +02:00
dependabot[bot]
9db1df05d4 Bump github.com/stretchr/testify from 1.10.0 to 1.11.0 (#867)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.10.0...v1.11.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.11.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-08-26 17:23:34 +02:00
bluenviron-bot
b8f8076c56 bump Golang to 1.25 (#864) 2025-08-14 10:51:28 +02:00
bluenviron-bot
b52fc1db52 bump golangci-lint to 2.4.0 (#865) 2025-08-14 10:33:55 +02:00
dependabot[bot]
0f430557ca Bump github.com/pion/srtp/v3 from 3.0.6 to 3.0.7 (#862)
Bumps [github.com/pion/srtp/v3](https://github.com/pion/srtp) from 3.0.6 to 3.0.7.
- [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.6...v3.0.7)

---
updated-dependencies:
- dependency-name: github.com/pion/srtp/v3
  dependency-version: 3.0.7
  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-08-13 10:39:00 +02:00
Alessandro Ros
cf1e074137 restore Windows compatibility (#860) (#861) v4.16.2 2025-08-12 12:45:06 +02:00
dependabot[bot]
78a8f619f7 Bump actions/checkout from 4 to 5 (#859)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 11:22:30 +02:00
Alessandro Ros
7a5df14b2c add UDPReadBufferSize option (#857) v4.16.1 2025-08-11 10:49:54 +02:00
dependabot[bot]
a560c2c24a Bump github.com/bluenviron/mediacommon/v2 from 2.4.0 to 2.4.1 (#858)
Bumps [github.com/bluenviron/mediacommon/v2](https://github.com/bluenviron/mediacommon) from 2.4.0 to 2.4.1.
- [Commits](https://github.com/bluenviron/mediacommon/compare/v2.4.0...v2.4.1)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/mediacommon/v2
  dependency-version: 2.4.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>
2025-08-10 23:30:30 +02:00
Alessandro Ros
314288ef12 client: prevent setting up undesired back channels (#856) 2025-08-09 17:14:22 +02:00
dependabot[bot]
7c174e3eb3 Bump actions/github-script from 6 to 7 (#854)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-08 10:24:52 +02:00
dependabot[bot]
f2d66eeb45 Bump codecov/codecov-action from 3 to 5 (#853)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-08 10:24:44 +02:00
dependabot[bot]
01d40cee72 Bump actions/setup-go from 3 to 5 (#855)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-08 10:23:58 +02:00
Alessandro Ros
dfd923f276 enable github-actions dependabot (#852) 2025-08-08 10:18:06 +02:00
dependabot[bot]
40354a2516 Bump golang.org/x/net from 0.42.0 to 0.43.0 (#851)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.42.0 to 0.43.0.
- [Commits](https://github.com/golang/net/compare/v0.42.0...v0.43.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.43.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-08-08 10:09:45 +02:00
Alessandro Ros
5cbe14c918 remove useless check (#849) 2025-08-07 16:31:12 +02:00
Alessandro Ros
6d6c7fe273 improve documentation (#848) 2025-08-07 16:18:43 +02:00
Alessandro Ros
e9db56f913 client: use server interface as multicast interface (#762) (#847)
this fixes most errors "found no interface that is multicast-capable
and can communicate with IP".
2025-08-04 15:17:49 +02:00