WHEP
WHEP pulls WebRTC media out of a room. It uses the same local-builder pattern as WHIP: whep.create builds a URL and token with no network call. Requires an active session in the room.
- Node.js
- Go
const play = client.whep.create(roomId, { source: { participantId: "presenter" } });
await client.whep.delete(play);
play, err := client.WHEP.Create(roomID, videosdk.CreateWhepParams{
Source: &videosdk.WhepSource{ParticipantID: "presenter"},
})
client.WHEP.Delete(ctx, *play)
Options: participantId, source (which remote peer to pull), expiresIn.
Got a Question? Ask us on discord