Skip to content

Instantly share code, notes, and snippets.

@mondain
Last active April 19, 2023 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mondain/5bc8bee11af4b291abe154b39879e822 to your computer and use it in GitHub Desktop.
Save mondain/5bc8bee11af4b291abe154b39879e822 to your computer and use it in GitHub Desktop.
WHEP brainstorming

WHEP Mode 1 with trickle:

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

WHEP Mode 1 without trickle:

sequenceDiagram
    participant wc as WHEP Client
    participant ws as WHEP Server
    wc->>+ws: OPTIONS /whep/endpoint/stream1?requestId=subscriber1
    ws-->>wc: HTTP Response with headers and optional Link header containing ICE servers
    wc->>ws: POST /whep/endpoint/stream1?requestId=subscriber1
    ws-->>wc: HTTP Response with SDP Offer with candidates and Location header "/whep/resource/stream1"
    wc->>ws: PATCH /whep/resource/stream1?requestId=subscriber1 with SDP Answer with candidates
    ws-->>wc: 201 Created
@mondain
Copy link
Author

mondain commented Apr 19, 2023

🌈 for completeness

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment