Closed wuchjun closed 2 years ago
How to reproduce this issue? Reproducing means how can I perform actions to see this issue.
TRANS_BY_GPT3
How to reproduce this issue? Reproducing means how can I perform actions to see this issue.
Currently, I am experiencing this issue when running the following command to start SRS on a Linux server and the Linux subsystem of Win11 (CANDIDATE settings: 150.158.149.205 as the server's public IP, and 192.168.153.27 as the IP of the Linux subsystem's eth0 network card).
export CANDIDATE="150.158.149.205" docker run --rm --env CANDIDATE=$CANDIDATE \ -p 1935:1935 -p 8080:8080 -p 1985:1985 -p 8000:8000/udp \ registry.cn-hangzhou.aliyuncs.com/ossrs/srs:5 \ objs/srs -c conf/rtmp2rtc.conf
Then, use OBS to stream the camera video to the corresponding address rtmp://150.158.149.205/live/livestream, or use Docker to stream RTMP to the local machine.
docker run --rm --network=host registry.cn-hangzhou.aliyuncs.com/ossrs/srs:encoder ffmpeg -re -i ./doc/source.flv \ -c copy -f flv rtmp://localhost/live/livestream
TRANS_BY_GPT3
Also try specifying the IP address in the URL using ?eip=x, the same problem occurs. In the player's F12, you can see that the interface request returns 200 and code: 0.
TRANS_BY_GPT3
Found the problem, the issue was caused by the Chrome browser extension, playback is normal in incognito mode.
TRANS_BY_GPT3
Description (描述)
After deploying to the server, the RTMP streaming works fine, but the WebRTC streaming fails. I have already checked that the UDP port 8000 is functioning properly using the method mentioned in https://github.com/ossrs/srs/issues/2843. However, when using the RTC console player to play the WebRTC stream, it keeps spinning and unable to request the resource. The log file shows "RTC: session destroy by timeout".
SRS Version:
5.0
SRS Log:
SRS Config:
Use the default configuration file located at conf/rtmp2rtc.conf in the project.
Replay (重现)
**1. Change the candidate to the server's public IP address.
Expect (Expected Behavior)
I hope to find out the cause and be able to use WebRTC for streaming normally. Thank you.
TRANS_BY_GPT3