Eyevinn / webrtc-player

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

feat: support WHEP flavor where server initiates the offer #20

Closed birme closed 1 year ago

birme commented 1 year ago

It first tries the client offer approach and if that fails it will send a request for an offer to the WHEP endpoint

marcusspangenberg commented 1 year ago

Looks good. Just a side note: Another alternative to avoid recreating the peer connection could be to start out with the server offer scenario (empty payload) and then move on to client offer scenario if the first one fails. That way no peer connection object has to be created until we know which method to use. Another benefit is that we try the preferred server offer method first.