Eyevinn / srt-whep

SRT to WHEP (WebRTC)
Apache License 2.0
69 stars 9 forks source link

WebRTC bin #7

Closed Wkkkkk closed 1 year ago

Wkkkkk commented 1 year ago

Here we record the interactions between WebRTC clients, as well as WHEP protocol.

Wkkkkk commented 1 year ago

Here we describe how to setup a WebRTC egress session and available tools for testing.

As discussed in this blog by Lorenzo Miniero, there are two ways to set up a WHEP session.

  1. The client originates an SDP offer (stating their intention of receiving specific media), and wait for an answer from the WHEP server, or
  2. ask the WHEP server to provide an SDP offer instead (with a description of the media session), and then provide the SDP answer in a further exchange. This approach was axed in the latest WHEP draft.

For testing purpose, we find two WHEP players.

  1. whepsrc (from gst-plugin-rs ). It takes the initiative and generate an SDP offer.
  2. whep player (from Eyevinn). It expects the server to provide an SDP offer.

For end-to-end test, wrtc-egress is available.

Wkkkkk commented 1 year ago

To establish a WebRTC connection, there are a few process: 1. Session initialisation 2. ICE negotiation 3. Media negotiation 4.Media transmission 5. Playback.

In this project, we focus on the session initialisation, to be specific, the exchange of SDP offer/answer using HTTP dialogs. ICE trickling is not under consideration for the moment.