srs icon indicating copy to clipboard operation
srs copied to clipboard

Used WHIP to push but no return value

Open lichao5585 opened this issue 1 year ago • 3 comments

image image image it seems push success but no response and i can not see the live image image

please help me

lichao5585 avatar Nov 19 '24 17:11 lichao5585

this is my configure

image

i used nginx proxy

lichao5585 avatar Nov 19 '24 17:11 lichao5585

this is my configure

image

i used nginx proxy

Did you fix this error. I use proxy and have same error. I push stream to proxy server but it had not stream

VyVu avatar Mar 12 '25 08:03 VyVu

The port 8000 required by RTC is not proxied.

TRANS_BY_GPT4

duiniuluantanqin avatar Mar 28 '25 05:03 duiniuluantanqin

i meet the same problem, i use gstreamer whipclientsink plugin to push whip stream,but only sound no video

Image

Viperine avatar Aug 14 '25 09:08 Viperine

This is NOT a bug in SRS - it's a configuration issue.

The Problem

The WHIP signaling DOES return a response (HTTP 201 with SDP answer). Looking at the code in trunk/src/app/srs_app_rtc_api.cpp lines 700-710, SRS correctly returns the response.

However, WebRTC has two parts:

  1. Signaling (HTTP) - works through Nginx proxy ✅
  2. Media transport (UDP port 8000) - blocked

Root Cause

As @duiniuluantanqin correctly identified: "The port 8000 required by RTC is not proxied."

Nginx only proxies HTTP/HTTPS (TCP), NOT UDP. The trunk/conf/nginx.proxy.conf shows it only forwards HTTP traffic to ports 1985 and 8080, but WebRTC media requires direct UDP port 8000 access.

winlinvip avatar Oct 26 '25 15:10 winlinvip