Skip to content

Instantly share code, notes, and snippets.

@mondain
Last active April 19, 2023 15:39
Show Gist options
  • Save mondain/7a3792711c489e97e8cede9e5acbef50 to your computer and use it in GitHub Desktop.
Save mondain/7a3792711c489e97e8cede9e5acbef50 to your computer and use it in GitHub Desktop.
WHIP

WHIP with trickle:

sequenceDiagram
    participant wc as WHIP Client
    participant ws as WHIP Server
    wc->>+ws: OPTIONS /whip/endpoint/stream1
    ws-->>wc: HTTP Response with headers and optional Link header containing ICE servers
    wc->>ws: POST /whip/endpoint/stream1 with SDP Offer
    ws-->>wc: HTTP Response with SDP Answer with candidates and Location header "/whip/resource/stream1"
    ws-->>wc: 201 Created
    wc->>ws: PATCH /whip/resource/stream1 with ICE fragments
    ws-->>wc: 204 No Content
Loading

WHIP without trickle:

sequenceDiagram
    participant wc as WHIP Client
    participant ws as WHIP Server
    wc->>+ws: OPTIONS /whip/endpoint/stream1
    ws-->>wc: HTTP Response with headers and optional Link header containing ICE servers
    wc->>ws: POST /whip/endpoint/stream1 with SDP Offer with candidates
    ws-->>wc: HTTP Response with SDP Answer with candidates and Location header "/whip/resource/stream1"
    ws-->>wc: 201 Created
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment