Comments (4)
I just have solved similar problem, maybe you have the same. Check srs container logs with:
docker container logs <container-id>
There was red error lines like "connection refused" and there was ip 172.x.x.x. I made a conclusion that srs server in docker on windows has another ip sub net and it is trying send callback request to localhost backend server (127.0.0.1). So it can not to connect.
I solved it with hosting backend on local network ip (for example 192.168.1.5) and srs server on VM with Ubuntu (with ip in same subnet 192.168.1.6) . I'm not an expert so maybe there is more simple decision
from srs.
You should know what localhost
means, it's the container itself, not your callback server.
from srs.
@caesar-ibrahimovic Very appreciate your response. However, you can see network_mode: host
in my srs Docker compose config, which mean srs now is in the same net of my localhost server.
from srs.
I know what localhost
is, fortunately and my problem is that even though my callback server isn't there (localhost:3000
), I can still stream to the RTMP container. IIRC, it should fail unless the callback API responses with statusCode 2xx. In other words, my RTMP container didn't apply the config at path /usr/local/srs/conf/srs.conf
as written in document.
from srs.
Related Issues (20)
- HTTPS: SSL errors in safari and chrome. HOT 1
- Standalone binary HOT 1
- Version 6.0/5.0 configuration parsing options: Configuration file not found at conf/docker.conf. HOT 1
- API: The VmSize of SRS is huge and incorrect, if enabled asan. HOT 2
- WebRTC WHEP URL playback is stuttering in Google Chrome browser.
- C++ HOT 1
- When the DVR generates a segment, it sends a request to /ws/v1/update. HOT 1
- RTMP to WebRTC fps drop by DJI mini 3. HOT 5
- Console: The HTTPS API and the HTTPS server share the same port. HOT 1
- RTMP2WebRTC: Stuttering when using flutter WebRTC HOT 5
- IO: network i/o and block i/o is shooting high HOT 1
- FFmepg: Transcode will result in endless ffmpeg process HOT 1
- High latency on raspberry pi 5 HOT 1
- WebRTC: Occasionally issue the SSRC is not found. HOT 1
- GB28181: Large latency when playing WebRTC. HOT 2
- it can generate and audio url like .mp3 or other HOT 1
- DVR: The mp4 file from DVR for camera can't play on window, MacOS, iOS HOT 1
- Quality of video over webRTC with SRS compared to OvenMediaEngine (GPU enabled) HOT 4
- WHEP: The 'Access-Control-Allow-Origin' header is missing for CORS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from srs.