1
0
Fork 0
forked from External/mediamtx
Commit graph

43 commits

Author SHA1 Message Date
Alessandro Ros
43d41c070b
move static sources into dedicated package (#2616) 2023-10-31 14:19:04 +01:00
Alessandro Ros
ecee2af05c
webrtc: fix crash in case of errors during PATCH (#2609) (#2613) 2023-10-30 19:53:03 +01:00
Alessandro Ros
64eb90738a
webrtc: return detailed errors in responses (#2594) 2023-10-28 14:08:34 +02:00
Alessandro Ros
99bc327d67
move protocol-related code into internal/protocols (#2572) 2023-10-26 21:46:18 +02:00
Alessandro Ros
28452acf56
move webrtc utilities into internal/webrtc (#2559) 2023-10-25 11:48:57 +02:00
Rui Lopes
9f5169ba26
webrtc: support WHIP/WHEP DELETE method (#2507) 2023-10-24 16:30:44 +02:00
Alessandro Ros
3a5bb06e26
add environment variable MTX_QUERY to some hooks (#2483) (#2522) 2023-10-18 11:50:26 +02:00
Aakash Singh
18733294c0
webrtc: expose ice servers on OPTIONS CORS requests (#2479)
the link header was getting ignored by browser fetch as it was not exposed by Access-Control-Expose-Headers
2023-10-09 18:26:34 +02:00
Rui Lopes
215f88e2dd
webrtc: add Location header to CORS-allowed headers (#2453) 2023-10-04 17:00:15 +02:00
Alessandro Ros
f1e28d053f
webrtc: fix ETag header name according to specification (#2396) (#2401) 2023-09-23 14:21:53 +02:00
Alessandro Ros
1e15d4995c
embed hls.js into the server (#2202) (#2236) 2023-08-23 18:37:07 +02:00
Alessandro Ros
659f19f8bb
enable errcheck (#2201) 2023-08-13 16:38:23 +02:00
Alessandro Ros
efcc4c4e65
fix crash in case of specially-crafted HTTP requests (#2166) (#2169) 2023-08-07 17:16:33 +02:00
Alessandro Ros
bc3084ae7b
support proxying WebRTC streams (#2142) 2023-08-03 23:12:05 +02:00
Alessandro Ros
ef8b9fb63d
webrtc, hls: reply status code 204 to OPTIONS requests (#2141) 2023-08-02 20:52:26 +02:00
Alessandro Ros
72b1d233df
normalize channels and methods (#2127)
needed by #2068
2023-07-30 23:53:39 +02:00
Alessandro Ros
119d6abf19
move HTTP utilities in a dedicated package (#2123)
needed by #2068
2023-07-30 23:03:00 +02:00
Alessandro Ros
b42154fa6a
return an error in case the random number generator fails (#2120) 2023-07-30 22:30:41 +02:00
Alessandro Ros
1fa53b49d4
webrtc, hls: prevent brute-force attacks by waiting before sending responses (#2100) 2023-07-23 20:18:58 +02:00
Alessandro Ros
0137734294
webrtc, hls: show IP in logs in case of failed authentication (#2099) 2023-07-23 20:06:16 +02:00
Alessandro Ros
36298f8bc8
webrtc: send session ID to external auth server (#1981) (#2098) 2023-07-23 19:31:34 +02:00
Alessandro Ros
3bb12e2a0a
webrtc: show both IP and port during session creation and in API (#2096) 2023-07-23 18:23:15 +02:00
Alessandro Ros
37586b2300
api: allow to edit properties of path config "all" (#2067) (#2075) 2023-07-19 13:33:05 +02:00
Alessandro Ros
473c075d89
webrtc: fix memory leak during shutdown or session kick (#2079) 2023-07-19 12:31:50 +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
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
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
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
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
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
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
adf94092a8
add base class to all HTTP servers (#1809) 2023-05-16 20:12:45 +02:00
Alessandro Ros
bf4d6c905f
hls muxer: show index page even if stream is not present (#1806) 2023-05-16 19:23:02 +02:00
Alessandro Ros
503a131097
webrtc: return 404 when a stream is not present (#1805) 2023-05-16 18:01:05 +02:00
Alessandro Ros
39c072edd6
change repository owner (#1801) 2023-05-16 16:14:20 +02:00
Alessandro Ros
a14246d776
webrtc: support publishing with WHIP and reading with WHEP (#1800) 2023-05-16 15:59:37 +02:00