-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WebRTC: Support WHIP(WebRTC-HTTP ingestion protocol) #3170
Labels
Milestone
Comments
winlinvip
added a commit
that referenced
this issue
Sep 6, 2022
winlinvip
added a commit
that referenced
this issue
Sep 6, 2022
winlinvip
added a commit
that referenced
this issue
Sep 6, 2022
request http://localhost:1985/rtc/v1/whip/ returns HTTP CODE: 502 is whip still supported on this version? @winlinvip |
winlinvip
added a commit
to winlinvip/srs
that referenced
this issue
Jan 14, 2023
winlinvip
added a commit
to winlinvip/srs
that referenced
this issue
Jan 15, 2023
winlinvip
added a commit
that referenced
this issue
Jan 17, 2023
This was referenced Jun 12, 2023
winlinvip
added a commit
that referenced
this issue
Sep 21, 2023
RFC for WHIP: https://datatracker.ietf.org/doc/draft-ietf-wish-whip/ RFC for WHEP: https://datatracker.ietf.org/doc/draft-murillo-whep/ Please note that SRS 5.0 already had WHIP support. I didn't write a document about WHIP, because WHIP is not a RFC right now, but there are clues in [srs-unity](https://github.com/ossrs/srs-unity#usage-publisher). SRS WHIP url for publisher: `http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream` This PR is for WHEP, the url for player is `http://localhost:1985/rtc/v1/whep/?app=live&stream=livestream` PS: There is a great PR for OBS to have WHIP support, see obsproject/obs-studio#7926 and #3581 PS: WHIP for FFmpeg ossrs/ffmpeg-webrtc#1 See #3170 --------- Co-authored-by: Haibo Chen <495810242@qq.com> Co-authored-by: john <hondaxiao@tencent.com> Co-authored-by: ChenGH <chengh_math@126.com>
winlinvip
added a commit
that referenced
this issue
Sep 21, 2023
RFC for WHIP: https://datatracker.ietf.org/doc/draft-ietf-wish-whip/ RFC for WHEP: https://datatracker.ietf.org/doc/draft-murillo-whep/ Please note that SRS 5.0 already had WHIP support. I didn't write a document about WHIP, because WHIP is not a RFC right now, but there are clues in [srs-unity](https://github.com/ossrs/srs-unity#usage-publisher). SRS WHIP url for publisher: `http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream` This PR is for WHEP, the url for player is `http://localhost:1985/rtc/v1/whep/?app=live&stream=livestream` PS: There is a great PR for OBS to have WHIP support, see obsproject/obs-studio#7926 and #3581 PS: WHIP for FFmpeg ossrs/ffmpeg-webrtc#1 See #3170 --------- Co-authored-by: Haibo Chen <495810242@qq.com> Co-authored-by: john <hondaxiao@tencent.com> Co-authored-by: ChenGH <chengh_math@126.com>
duiniuluantanqin
added a commit
to duiniuluantanqin/srs
that referenced
this issue
Oct 11, 2023
RFC for WHIP: https://datatracker.ietf.org/doc/draft-ietf-wish-whip/ RFC for WHEP: https://datatracker.ietf.org/doc/draft-murillo-whep/ Please note that SRS 5.0 already had WHIP support. I didn't write a document about WHIP, because WHIP is not a RFC right now, but there are clues in [srs-unity](https://github.com/ossrs/srs-unity#usage-publisher). SRS WHIP url for publisher: `http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream` This PR is for WHEP, the url for player is `http://localhost:1985/rtc/v1/whep/?app=live&stream=livestream` PS: There is a great PR for OBS to have WHIP support, see obsproject/obs-studio#7926 and ossrs#3581 PS: WHIP for FFmpeg ossrs/ffmpeg-webrtc#1 See ossrs#3170 --------- Co-authored-by: Haibo Chen <495810242@qq.com> Co-authored-by: john <hondaxiao@tencent.com> Co-authored-by: ChenGH <chengh_math@126.com>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
RFC: https://datatracker.ietf.org/doc/draft-ietf-wish-whip/
Usage
Start SRS
SRS 6.0.36+
orSRS 5.0.148+
, there is a WHIP and WHEP client in srs-player:Then open WHIP and click
Publish
button.Finally, open WHEP and click
Play
button.OBS-WHIP
See #3581 and Experience Ultra-Low Latency Live Streaming with OBS WHIP!
Larix
Larix Broadcaster Apps and SDKs for capturing and streaming from mobile devices.
Please use
SRS 6.0.36+
orSRS 5.0.148+
.Add a connection in Larix:
Settings > Connections > New WebRTC connection
http://your-ip:1985/rtc/v1/whip/?app=live&stream=livestream
Click the publish button.
whip-go
whip-go is a simple WHIP client implementation in go using the WebRTC Pion libraries. It includes a WHIPClient class and a simple command line client supporrting screensharing to a WHIP ingestion endpoint.
First, clone code and build it, by Go 1.20+:
Run with:
./whip-go -v screen -vc h264 'http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream'
Note that it requires:
/rtc/v1/whip/?app=live&stream=livestream
for DELETE.It works with SRS WHIP.
Protocol
The endpoint of SRS for WHIP:
Query string:
live
.livestream
.The response of WHIP:
There is an example of WHIP publish:
whip-publish.pcapng.zip
The snapshot for request:
The snapshot for response:
SDP offer
SDP answer
The text was updated successfully, but these errors were encountered: