mediamtx/internal/core
rmcnew 75f518a827
Support SRT encryption passphrases on configured paths (#2385)
* Support SRT encryption passphrases on configured paths

* Fix namespace; make passphrase use more clear

* Updates from Alessandro's feedback and lint output

* Fix lint findings

* Update lint.yml

* Update lint.yml

* Fix lint findings

* Add SRT passphrase tests for conf/path

* Reformat test to pass lint

* More changes to pass lint

* More changes to pass lint

* Use safeConf to prevent race conditions

* update API docs

* split configuration checks from connection checks

* add tests

* rename publishSRTPassphrase into srtPublishPassphrase, readSRTPassphrase into srtReadPassphrase

* remove redundant alias

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2023-09-23 12:55:45 +02:00
..
api.go enable errcheck (#2201) 2023-08-13 16:38:23 +02:00
api_defs.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
api_test.go fix maxReaders limit in case of multiple tracks (#2246) (#2264) 2023-08-30 10:58:24 +02:00
authentication.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
conn.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
core.go rename 'external commands' into 'hooks' (#2400) 2023-09-23 12:49:08 +02:00
core_test.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
hls.min.js bump hls-js to v1.4.12 (#2283) 2023-09-02 09:56:03 +02:00
hls_http_server.go hls: return 404 when requesting hls.min.js.map (#2262) 2023-08-29 11:03:10 +02:00
hls_index.html embed hls.js into the server (#2202) (#2236) 2023-08-23 18:37:07 +02:00
hls_manager.go force all readers to use an asynchronous writer (#2265) 2023-08-30 11:24:14 +02:00
hls_manager_test.go update dependencies (#2266) 2023-08-30 11:48:03 +02:00
hls_muxer.go update gortsplib (#2390) 2023-09-21 17:21:18 +02:00
hls_source.go update gortsplib (#2390) 2023-09-21 17:21:18 +02:00
hls_source_test.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
ip.go hls server: show real client IPs when behind a proxy (#955) 2022-06-21 13:54:19 +02:00
metrics.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
metrics_test.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
mpegts.go update gortsplib (#2390) 2023-09-21 17:21:18 +02:00
path.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
path_manager.go implement native recording (#1399) (#2255) 2023-09-16 17:27:07 +02:00
path_manager_test.go add runOnDisconnect, runOnNotReady, runOnUnread (#1464) (#2355) 2023-09-16 19:21:48 +02:00
path_test.go add runOnDisconnect, runOnNotReady, runOnUnread (#1464) (#2355) 2023-09-16 19:21:48 +02:00
pprof.go fix crash in case of specially-crafted HTTP requests (#2166) (#2169) 2023-08-07 17:16:33 +02:00
publisher.go print track codecs into logs 2022-08-15 16:29:40 +02:00
reader.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
restrict_network.go do not listen on IPv6 when host is 0.0.0.0 (#1665) (#1678) 2023-04-10 22:48:33 +02:00
rpicamera_source.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
rtmp_conn.go update gortsplib (#2390) 2023-09-21 17:21:18 +02:00
rtmp_listener.go enable errcheck (#2201) 2023-08-13 16:38:23 +02:00
rtmp_server.go add runOnDisconnect, runOnNotReady, runOnUnread (#1464) (#2355) 2023-09-16 19:21:48 +02:00
rtmp_server_test.go add runOnDisconnect, runOnNotReady, runOnUnread (#1464) (#2355) 2023-09-16 19:21:48 +02:00
rtmp_source.go update gortsplib (#2390) 2023-09-21 17:21:18 +02:00
rtmp_source_test.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
rtsp_conn.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
rtsp_server.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
rtsp_server_test.go add runOnDisconnect, runOnNotReady, runOnUnread (#1464) (#2355) 2023-09-16 19:21:48 +02:00
rtsp_session.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
rtsp_source.go normalize configuration (#2399) 2023-09-23 12:48:34 +02:00
rtsp_source_test.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
source.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
source_redirect.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
source_static.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
srt_conn.go Support SRT encryption passphrases on configured paths (#2385) 2023-09-23 12:55:45 +02:00
srt_listener.go enable errcheck (#2201) 2023-08-13 16:38:23 +02:00
srt_server.go add runOnDisconnect, runOnNotReady, runOnUnread (#1464) (#2355) 2023-09-16 19:21:48 +02:00
srt_server_test.go Support SRT encryption passphrases on configured paths (#2385) 2023-09-23 12:55:45 +02:00
srt_source.go support AC-3 tracks in SRT and UDP; support recording AC-3 tracks (#2376) 2023-09-19 22:33:00 +02:00
srt_source_test.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
tls_fingerprint.go join validation of TLS fingerprints (#2071) 2023-07-18 23:39:26 +02:00
udp_source.go support AC-3 tracks in SRT and UDP; support recording AC-3 tracks (#2376) 2023-09-19 22:33:00 +02:00
udp_source_test.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
webrtc_http_server.go embed hls.js into the server (#2202) (#2236) 2023-08-23 18:37:07 +02:00
webrtc_incoming_track.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
webrtc_manager.go add runOnDisconnect, runOnNotReady, runOnUnread (#1464) (#2355) 2023-09-16 19:21:48 +02:00
webrtc_manager_test.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00
webrtc_outgoing_track.go fix timestamp of outgoing RTSP/RTP packets in case of aggregated access units (#2389) 2023-09-21 16:13:40 +02:00
webrtc_publish_index.html webrtc: display publish-related errors in web page (#1836) (#2080) 2023-07-19 13:20:05 +02:00
webrtc_read_index.html Add video player options via query string (#2145) 2023-08-07 22:19:15 +02:00
webrtc_session.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
webrtc_source.go add additional environment variables to custom commands (#1414) (#2356) 2023-09-16 21:41:49 +02:00
webrtc_source_test.go switch to gortsplib/v4 (#2244) 2023-08-26 18:54:28 +02:00