vpalmisano
(Vittorio Palmisano)
November 8, 2021, 4:31pm
1
For those interested in testing the new WHIP protocol, here you have a PR enabling it in the mediasoup-demo (no library modifications needed):
versatica:v3
← vpalmisano:feat/server/Experimental-WHIP-support
opened 01:55PM - 07 Nov 21 UTC
This PR implements a basic [WebRTC-HTTP ingestion protocol (WHIP)](https://www.i… etf.org/archive/id/draft-ietf-wish-whip-00.html) support for mediasoup demo.
Tested using https://github.com/lminiero/simple-whip-client:
1. Visit https://127.0.0.1:3000/?info=true&roomId=test&produce=false
2. Start the whip client:
```bash
./whip-client -u https://127.0.0.1:4443/whip/test/broadcasterId \
-V "videotestsrc is-live=true pattern=ball ! videoconvert ! queue ! vp8enc deadline=1 ! rtpvp8pay pt=96 ssrc=2 picture-id-mode=2 ! queue ! application/x-rtp,media=video,encoding-name=VP8,payload=96" \
-A "audiotestsrc is-live=true wave=red-noise ! audioconvert ! audioresample ! queue ! opusenc ! rtpopuspay pt=100 ssrc=1 ! queue ! application/x-rtp,media=audio,encoding-name=OPUS,payload=100"
```
3. Stop the broadcaster:
```bash
curl -k -X DELETE https://127.0.0.1:4443/whip/test/broadcasterId
```
4 Likes
nazar-pc
(Nazar Mokynskyi)
November 8, 2021, 5:20pm
2
Nice! I was also thinking about creating a Rust example of WHIP server, might use this as an example even though I am familiar with WHIP.
1 Like
vpalmisano
(Vittorio Palmisano)
November 8, 2021, 5:30pm
3
Basically I used some mediasoup-client libraries at server side for parsing the SDP request sent in the WHIP request and create the answer, as done in the mediasoup-client Device class.
any updates on this @nazar-pc on rust version? this is a pretty interesting thing to have i think
nazar-pc
(Nazar Mokynskyi)
July 24, 2022, 5:11pm
5
Nothing on my side, but if you know something about WebRTC you can do it yourself and contribute. I’m very busy these days and don’t have time.
1 Like