bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
12.4k stars 1.54k forks source link

webrtc: support passing Bearer tokens to WebRTC sources #3796

Open aler9 opened 2 months ago

aler9 commented 2 months ago

Describe the feature

Discussed in #3512

johnny-ark commented 1 month ago

just pass token as jwt query parameter for your WHEP

aler9 commented 1 month ago

@johnny-ark most servers do not support passing JWT as query parameter - only MediaMTX does.

johnny-ark commented 1 month ago

@johnny-ark most servers do not support passing JWT as query parameter - only MediaMTX does.

you can inspect whep link html which return by mediamtx and create your own html page where you will be able to inject Bearer headers. Because now its reading from query parameter