wish-wg / webrtc-http-egress-protocol

WHEP - WebRTC HTTP egress protocol draft
4 stars 4 forks source link

Add whip/whep interoperability #9

Closed murillo128 closed 1 year ago

murillo128 commented 2 years ago
                +------------+     +-----------+      +------------+
                |            |     | WHIP      |      | WHEP       |
                |    GW      |     | Endpoint  |      | Endpoint   |
                +-----+------+     +-----+-----+      +-----+------+
                      |                  |                  |
                      |        HTTP POST |                  |
                      +------------------+----------------->|
                      |                  |                  |
                      |        201 CREATED (SDP OFFER)      |
                      |<-----------------+------------------+
                      |                  |                  |
                      |   HTTP POST (SDP OFFER)             |
                      +------------------>                  |
                      |   201 CREATED (SDP ANSWER)          |
                      |<-----------------+                  |
                      |   HTTP PATCH (SDP|ANSWER)           |
                      +------------------+----------------->|
                      |   200 OK         |                  |
                      |<-----------------+------------------+
                      |                  |                  |
                      |                  |                  |
murillo128 commented 2 years ago
+----------------+  +---------------+   +--------------+
| WHEP Client    |  |      GW       |   | WHIP client  |
+-------+--------+  +-------+-------+   +-------+------+
        |                   |                   |
        | POST (empty, long poll)               |
        +------------------>+                   |
        |                   |                   |
        |                   |                   |
        |                   |                   |
        |                   |                   |
        |                   |  POST (SDP offer) |
        |  201 SDP Offer    |<------------------+
        |<------------------+                   |
        | PATCH (SDP Answer)|                   |
        +------------------>|                   |
        |                   |  201 SDP Answer   |
        |                   +------------------>|
        | 200 OK            |                   |
        |<------------------+                   |
        |                   |                   |
        |                   |                   |
        |                   |                   |
        |                   |                   |
        |                   |                   |
murillo128 commented 1 year ago

removing WHEP endpoint acting as offered due to risk of having two different sets of client servers not interoperable between each other.