Eyevinn / webrtc-player

WebRTC (recvonly) player
MIT License
87 stars 18 forks source link

feat: add authorization header for whep, for stream key #64

Closed dnimon closed 9 months ago

dnimon commented 9 months ago

Servers like https://github.com/Glimesh/broadcast-box require an Authorization header to provide the stream key.

The whip client (https://github.com/Eyevinn/whip/blob/main/packages/sdk/src/WHIPProtocol.ts) supports providing an authkey and sends it to the header.

This PR does the same for the player for whep, to allow for the authorization header to be passed.