Commit graph

45 commits

Author SHA1 Message Date
Alessandro Ros
4e581af7a6
hls: fix directory creation when using hlsDirectory (#3135) (#3151) 2024-03-19 14:09:25 +01:00
Alessandro Ros
1d4ea2cd9a
hls: fix freeze in case of muxing errors (#3135) (#3150) 2024-03-19 14:01:14 +01:00
Alessandro Ros
c7dbb951f3
update golangci-lint (#3149) 2024-03-19 12:53:26 +01:00
Alessandro Ros
24cc62e344
hls: decrease number of idle connections kept open after a reconnection (#3128) 2024-03-10 11:51:15 +01:00
Alessandro Ros
9c6ba7e2c7
New authentication system (#1341) (#1992) (#2205) (#3081)
This is a new authentication system that covers all the features exposed by the server, including playback, API, metrics and PPROF, improves internal authentication by adding permissions, improves HTTP-based authentication by adding the ability to exclude certain actions from being authenticated, adds an additional method (JWT-based authentication).
2024-03-04 14:20:34 +01:00
github-actions[bot]
a0be4ca05f
bump hls.js to v1.5.7 (#3072)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-02-27 16:12:39 +01:00
Alessandro Ros
b6db3121b5
rtsp: add random value to timestamp of tracks from other protocols (#3071) 2024-02-26 00:41:05 +01:00
Alessandro Ros
c7bdcea741
move RTSP tests into internal/servers/rtsp (#3049) 2024-02-20 19:35:35 +01:00
Alessandro Ros
34dbcfb508
move WebRTC tests into internal/servers/webrtc (#3043) 2024-02-18 22:15:08 +01:00
github-actions[bot]
679bad7fbf
bump hls.js to v1.5.6 (#3038)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-02-18 17:37:24 +01:00
Alessandro Ros
9e5de737f0
move SRT tests into internal/servers/srt (#3037) 2024-02-17 20:42:41 +01:00
Alessandro Ros
ad58efe47d
move RTMP tests into internal/servers/rtmp (#3035) 2024-02-16 23:27:27 +01:00
Spencer Lowe
e5e029a7f4
srt: add additional metrics (#2962)
* first attempt at the srt metrics

* Updated variables to better match mediamtx

* Prometheus metrics for SRT

* Update readme for SRT metrics

* Switch openapi to number from float

* SRT metrics metrics response fix

* Make the metric test less strict, and nolint line length on the SRT metrics struct

* remove nolint

* move BytesSent and BytesReceived into APISRTConnMetrics

* merge APISRTConn and APISRTConnMetrics

* improve tests

---------

Co-authored-by: slowe <slowe@clairglobal.com>
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2024-02-16 14:22:30 +01:00
github-actions[bot]
992a8082b8
bump hls-js to vv1.5.5 (#3019)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-02-14 11:58:44 +01:00
Alessandro Ros
ba69241377
hls: stop spamming 'stream doesn't contain any supported codec' when hlsAlwaysRemux is true (#3018) 2024-02-13 23:36:40 +01:00
Alessandro Ros
1ae3240b91
hls: fix crash when muxer is being recreated, improve performance (#3017) 2024-02-13 23:32:15 +01:00
Alessandro Ros
b6eaa6bc18
move test utilities into 'test' (#3016)
* move test utilities into 'test'

* rename newEmptyTimer into emptyTimer
2024-02-13 18:49:27 +01:00
Alessandro Ros
c2883f2ce9
hls: when alwaysRemux is true, prevent clients from creating muxers (#3015) 2024-02-13 17:37:03 +01:00
Alessandro Ros
3161e73a58
rename httpserv into httpp (#3014) 2024-02-13 13:04:56 +01:00
Alessandro Ros
487f92ac55
hls: in logs, store both ip and port of incoming requests (#3013) 2024-02-12 22:44:44 +01:00
Alessandro Ros
df3dfea132
fix compilation with Windows and git autocrlf (#3010) (#3011) 2024-02-12 18:13:01 +01:00
Alessandro Ros
9eb97ad3a0
remove hls.js from the repository and restore plain MIT license (#3008) 2024-02-12 00:31:13 +01:00
github-actions[bot]
1b13018321
bump hls-js to v1.5.4 (#2999)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-02-08 21:42:25 +01:00
Alessandro Ros
4553fc267c
hls, webrtc: in web page, add shadow to messages (#2959) 2024-02-03 11:31:01 +01:00
Alessandro Ros
b32bc8dee9
hls, webrtc: in web page, prevent video from overflowing (#2958) 2024-02-03 11:30:44 +01:00
github-actions[bot]
97c58b4530
bump hls-js to v1.5.3 (#2964)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-01-31 10:37:37 +01:00
Alessandro Ros
0433af66a3
hls, webrtc: in the web page, show connection errors to users (#2957) 2024-01-29 00:43:34 +01:00
Alessandro Ros
7d0e702f14
hls: fix infinite loop in web client when reading incompatible codecs (#2956)
when a player received a stream with incompatible codecs, it started
polling the server for index.m3u8 in an infinite loop. This was caused
by #2631
2024-01-29 00:25:42 +01:00
github-actions[bot]
2f35bbc5bc
bump hls-js to v1.5.2 (#2948)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-01-26 12:20:08 +01:00
Alessandro Ros
57c2d5aecb
add playback server (#2452) (#2906)
* add playback server

* add playback switch

* update readme
2024-01-23 20:52:05 +01:00
Alessandro Ros
7b9617f2e7
api: return 404 when an entity is not found (#2582) (#2920) 2024-01-18 23:28:56 +01:00
Alessandro Ros
b3eaec50c1
srt: support standard streamID syntax (#2469) (#2919) 2024-01-18 23:23:51 +01:00
Alessandro Ros
dd7d7c6c5d
srt: wait some seconds before returning authentication errors (#2918)
this allows to mitigate brute force attacks and is possible thanks to
https://github.com/datarhei/gosrt/pull/43
2024-01-18 22:48:25 +01:00
Alessandro Ros
514036d41a
treat different RTSP formats as different tracks in logs and API (#2907) 2024-01-15 12:08:14 +01:00
Alessandro Ros
20bb9b90cd
support G711 tracks with multiple channels and custom sample rates (#2891) 2024-01-13 11:40:26 +01:00
github-actions[bot]
a6c7d287a7
bump hls-js to v1.5.1 (#2903)
Co-authored-by: mediamtx-bot <bot@mediamtx>
2024-01-13 11:33:09 +01:00
github-actions[bot]
584fdb72a0
bump hls-js to v1.5.0 (#2900) 2024-01-11 11:27:11 +01:00
Alessandro Ros
27975d8b67
rtmp: support publishing G711 and LPCM tracks (#2857) (#2884) 2024-01-07 17:02:22 +01:00
Alessandro Ros
7437ee7a09
update golangci-lint (#2868) 2024-01-03 21:13:20 +01:00
Alessandro Ros
598fadc9fb
api: add 'query' field to RTMP, RTSP, SRT and WebRTC clients (#2689) (#2844) 2023-12-26 13:59:53 +01:00
Alessandro Ros
1feeba92b0
webrtc: prevent NotReadableError when publishing with Android (#2698) (#2842) 2023-12-26 12:53:33 +01:00
github-actions[bot]
e6fec31516
bump hls-js to v1.4.14 (#2825) 2023-12-19 12:22:38 +01:00
Alessandro Ros
4e8b8a2014
rtmp, srt: fix output of 'is reading from' log entry (#2820) 2023-12-18 10:38:31 +01:00
Alessandro Ros
94953f5d22
webrtc: support Chrome versions older than M72 (#2621) (#2814) 2023-12-16 18:39:36 +01:00
Alessandro Ros
11988249df
move servers into internal/servers (#2792) 2023-12-08 19:17:17 +01:00