RTSPtoWeb icon indicating copy to clipboard operation
RTSPtoWeb copied to clipboard

WebRTC offer requires form-data

Open timurkh-devstark opened this issue 4 years ago • 4 comments

Hi! Please clarify in your API Documentation for WebRTC that your server is waiting for form-data info which needs to include: 'data': 'base64 encoded sdp offer'. Its takes me very much hours to understand what I do wrong because I got error "SetRemoteDescription called with no ice-ufrag" every time because I used simple body json data to pass SDP offer.

timurkh-devstark avatar Sep 11 '22 13:09 timurkh-devstark

It would be great if you sent an update to the documentation!

allenporter avatar Sep 11 '22 13:09 allenporter

https://github.com/deepch/RTSPtoWeb/blob/master/docs/api.md

The request is an HTTP POST with a parameter data that is a base64 encoded SDP offer (e.g. v=0...) from a WebRTC client.

allenporter avatar Sep 11 '22 13:09 allenporter

https://github.com/deepch/RTSPtoWeb/blob/master/docs/api.md

The request is an HTTP POST with a parameter data that is a base64 encoded SDP offer (e.g. v=0...) from a WebRTC client.

Yeah I mean it would be great if you clarify that it must be FormData

timurkh-devstark avatar Sep 11 '22 13:09 timurkh-devstark

Yeah I'm suggesting your contribution would be welcome to that page. (It seems perfectly clear to me, so an outside perspective could do a better job at clarifying what's missing.) Send an edit!

allenporter avatar Sep 11 '22 14:09 allenporter