Commit graph

832 commits

Author SHA1 Message Date
Volodymyr Borodin
47317ea8e5
api: add path to RTMP connections, RTSP sessions, WebRTC sessions (#1962) (#2022)
* api: add path to rtmp response

* add 'path' to RTSP and WebRTC sessions too

* add tests

---------

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2023-07-05 21:20:26 +02:00
Alessandro Ros
f0a4bd4e5d
stop execution in case of panics when handling HTTP requests (#2021) 2023-07-04 22:24:07 +02:00
Alessandro Ros
64a715a663
hls, webrtc: add Authorization to Access-Control-Allow-Headers (#2018) (#2020) 2023-07-04 22:18:41 +02:00
Alessandro Ros
1a748bb971
webrtc: allow using special characters in ICE server credentials (#1953) (#2000) 2023-06-30 16:47:10 +02:00
Alessandro Ros
418f4a90b5
rpicamera: check libcamera architecture by using the ELF header (#1940) (#1997) 2023-06-28 16:46:32 +02:00
Alessandro Ros
059ca76fad
webrtc: support publishing with OBS and WebRTC (#1998) 2023-06-28 15:47:21 +02:00
Alessandro Ros
f1b975707a
api: return 404 in /get and /kick endpoints (#1994) (#1995)
when an entity is not found
2023-06-27 23:55:31 +02:00
Alessandro Ros
20a3b07d0a
webrtc: move codec and bitrate settings on client side (#1990) 2023-06-27 22:37:06 +02:00
Alessandro Ros
79ee4e06f3
webrtc: add option to disable audio effects (#1908) (#1989) 2023-06-27 22:36:29 +02:00
Alessandro Ros
4aef466103
webrtc: allow setting Opus bitrate (#1908) (#1985) 2023-06-27 22:15:50 +02:00
Alessandro Ros
6663f7b474
webrtc: forbid publishing zero tracks (#1991) 2023-06-27 13:58:06 +02:00
Alessandro Ros
fb1f8ff81d
webrtc: fix bitrate not being applied (#1984) 2023-06-24 18:35:19 +02:00
Alessandro Ros
c46d2156b6
webrtc: fix memory leak when publishing or reading (#1884) (#1983) 2023-06-24 13:30:36 +02:00
Alessandro Ros
2faca73749
hls, webrtc: in the web page, pass query parameters to inner requests (#1976) 2023-06-22 13:19:57 +02:00
Alessandro Ros
5224531551
webrtc: do not pass preflight requests to external auth (#1941) (#1972) 2023-06-22 12:49:59 +02:00
Alessandro Ros
ba6c0fa822
set Access-Control-Allow-Headers to a static string (#1973) 2023-06-22 00:16:19 +02:00
Alessandro Ros
5033d1e145
update dependencies (#1968) 2023-06-21 16:20:21 +02:00
Alessandro Ros
f79c4783c7
rename environment variable RTSP_PATH into MTX_PATH (#1967) 2023-06-21 16:08:37 +02:00
Alessandro Ros
815fa0586a
webrtc: fix using inline credentials in URLs (#1919) (#1966) 2023-06-21 15:44:04 +02:00
Alessandro Ros
4f098cbdf3
improve tests (#1965) 2023-06-21 15:03:02 +02:00
Alessandro Ros
daa6500082
webrtc: make preflight OPTIONS requests work with external auth (#1941) (#1964)
* webrtc: allow preflight OPTIONS requests to work with external auth (#1941)

* add tests

* improve tests
2023-06-21 13:53:58 +02:00
Alessandro Ros
d3354a0c99
fix 'runOnDemandRestart: yes' (#1947) 2023-06-21 13:25:26 +02:00
Alessandro Ros
4dd518cbb1
rebrand initial log message (#1922) 2023-06-07 12:25:16 +02:00
Alessandro Ros
083151360e
return an error in case configuration file can't be opened (#1920) 2023-06-06 21:17:40 +02:00
Alessandro Ros
e2a6c380b0
api: fix setting default parameters when creating a path (#1853) (#1905)
this fixes a regression introduced in v0.23.0.
2023-06-02 18:43:04 +02:00
Alessandro Ros
681a00347d
support reading MP4A-LATM-encoded AAC with RTMP and HLS (#1694) (#1898) 2023-06-02 00:38:27 +02:00
Alessandro Ros
efda44cfae
rtmp: fix timestamp conversion from RTSP/HLS to RTMP (#1899)
this was causing moments of silence and timing errors when reading with
RTMP a stream originally published with RTSP or HLS.
2023-06-02 00:34:09 +02:00
Victor
052da51af3
Add WebRTC stream id to whep response headers (#1879)
* Add WebRTC stream id to whep response headers

* change header name from UUID to ID

* add tests

---------

Co-authored-by: Victor Vitkovskiy <victor.vitkovskiy@mirasys.com>
Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
2023-05-31 18:24:06 +02:00
Alessandro Ros
210603d7c4
update documentation (#1885) 2023-05-31 18:16:39 +02:00
Alessandro Ros
ce1d2abc15
fix using multicast when a single interface doesn't support it (#1874) 2023-05-28 18:12:32 +02:00
Alessandro Ros
af324c9e91
rpi camera: allow using decimal FPS (#1743) (#1873) 2023-05-28 17:29:37 +02:00
Alessandro Ros
89ebc83993
update golangci-lint (#1870) 2023-05-28 17:18:16 +02:00
Alessandro Ros
22f05e97e8
replace math/rand with crypto/rand (#1872) 2023-05-28 17:10:40 +02:00
Alessandro Ros
7d04742426
restore sending session ID to external authentication (#1871)
this fixes a regression introduced in v0.23.0
2023-05-28 13:45:19 +02:00
Alessandro Ros
128f2d3e20
print error that caused an external command to exit (#1869) 2023-05-27 19:28:07 +02:00
Alessandro Ros
a0b973963d
allow using special characters in external commands (#1652) (#1868)
on Windows, when using cmd.exe or a bat file as external command.
2023-05-27 18:20:06 +02:00
Alessandro Ros
99aa0d0ac9
webrtc: fix WHIP/WHEP implementation (#1857) (#1861)
offers and answers are now encoded in SDP in place of JSON; Location
header is set by the server.

This fixes compatibility with GStreamer and whipsink
2023-05-24 17:06:06 +02:00
Alessandro Ros
65f617aa7c
api: allow using paths/list when a path is being deleted (#1849) 2023-05-20 11:11:26 +02:00
Alessandro Ros
1889641c8c
webrtc: add POST and PATCH methods to Access-Control-Allow-Methods (#1848) 2023-05-20 11:10:14 +02:00
Alessandro Ros
766260f8dd
fix usage of Access-Control-Expose-Headers (#1847) 2023-05-20 10:59:44 +02:00
mrlt8
79cbf622a2
Expose E-Tag, Accept-Patch and Link headers for cross-origin WHIP/WHEP requests (#1841) 2023-05-20 10:51:19 +02:00
Alessandro Ros
6e5f87f65e
hls: fix 404 error when hlsAlwaysRemux and sourceOnDemand are both true (#1818) (#1834) 2023-05-18 23:14:18 +02:00
Alessandro Ros
6cb3ff0d55
api: sort results of /list endpoints (#1828) 2023-05-18 20:17:04 +02:00
Alessandro Ros
e10055ad69
api: add item count to /list endpoints (#1813) (#1829) 2023-05-18 20:05:59 +02:00
Alessandro Ros
13fb559f5f
fix race condition in TestMetrics (#1830) 2023-05-18 20:05:35 +02:00
Alessandro Ros
330a9e027c
fix race condition in tests (#1826) 2023-05-18 19:16:07 +02:00
Alessandro Ros
67672ea9c6
api: fix wrong pageCount in /list endpoints (#1813) (#1824) 2023-05-18 18:59:51 +02:00
Alessandro Ros
581a840771
fix missing H264/H265 keyframe warning message (#1825) 2023-05-18 18:00:53 +02:00
Alessandro Ros
b93eed64bc
api: add /get endpoints (#1577) (#1823)
this allows to get entities by ID or name after /list endpoints were
changed in v0.23.0.
2023-05-18 15:07:47 +02:00
Alessandro Ros
bbd8f006fe
rtmp: fix crash when publishing video-only tracks (#1819) (#1822)
this fixes a regression introduced in v0.23.0.
2023-05-18 15:05:26 +02:00