Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sourceOnDemand doesn't appear to work in v0.9.6 #49

Closed
mattheys opened this issue Jul 31, 2020 · 2 comments
Closed

sourceOnDemand doesn't appear to work in v0.9.6 #49

mattheys opened this issue Jul 31, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@mattheys
Copy link

Which version are you using?

v0.9.6

Describe the problem

I've set the sourceOnDemand setting to both no and yes but my streams don't start unless someone tries to listen.

This is my config.

protocols: [udp, tcp]
rtspPort: 8554
runOnConnect:
readTimeout: 10s
writeTimeout: 5s
authMethods: [basic, digest]
pprof: false

paths:
  all:
    sourceOnDemand: no
  garage:
    source: rtsp://192.168.1.142/live/ch0
  back:
    source: rtsp://192.168.1.143/stream1
    sourceProtocol: tcp
  porch:
    source: rtsp://192.168.1.120:8554/unicast

sourceOnDemand: no

2020/07/31 08:18:09 [0/0/0] rtsp-simple-server v0.9.6
2020/07/31 08:18:09 [0/0/0] [UDP/RTP listener] opened on :8000
2020/07/31 08:18:09 [0/0/0] [UDP/RTCP listener] opened on :8001
2020/07/31 08:18:09 [0/0/0] [TCP listener] opened on :8554
2020/07/31 08:18:09 [0/0/0] [source garage] started
2020/07/31 08:18:09 [0/0/0] [source garage] connecting
2020/07/31 08:18:09 [0/0/0] [source back] started
2020/07/31 08:18:09 [0/0/0] [source porch] started
2020/07/31 08:18:09 [0/0/0] [source porch] connecting
2020/07/31 08:18:09 [0/0/0] [source back] connecting
2020/07/31 08:18:09 [0/0/0] [source porch] ready
2020/07/31 08:18:09 [0/0/0] [source back] ready
2020/07/31 08:18:10 [0/0/0] [source garage] ready
2020/07/31 08:18:14 [0/0/0] [source garage] stopping since we're not requested anymore
2020/07/31 08:18:14 [0/0/0] [source back] stopping since we're not requested anymore
2020/07/31 08:18:14 [0/0/0] [source porch] stopping since we're not requested anymore
2020/07/31 08:18:14 [0/0/0] [source back] not ready
2020/07/31 08:18:14 [0/0/0] [source porch] not ready
2020/07/31 08:18:14 [0/0/0] [source garage] not ready
2020/07/31 08:18:14 [0/0/0] [source porch] stopped
2020/07/31 08:18:14 [0/0/0] [source garage] stopped
2020/07/31 08:18:14 [0/0/0] [source back] stopped

sourceOnDemand: yes

2020/07/31 08:20:46 [0/0/0] rtsp-simple-server v0.9.6
2020/07/31 08:20:46 [0/0/0] [UDP/RTP listener] opened on :8000
2020/07/31 08:20:46 [0/0/0] [UDP/RTCP listener] opened on :8001
2020/07/31 08:20:46 [0/0/0] [TCP listener] opened on :8554
2020/07/31 08:20:46 [0/0/0] [source porch] started
2020/07/31 08:20:46 [0/0/0] [source porch] connecting
2020/07/31 08:20:46 [0/0/0] [source back] started
2020/07/31 08:20:46 [0/0/0] [source back] connecting
2020/07/31 08:20:46 [0/0/0] [source garage] started
2020/07/31 08:20:46 [0/0/0] [source garage] connecting
2020/07/31 08:20:46 [0/0/0] [source porch] ready
2020/07/31 08:20:46 [0/0/0] [source back] ready
2020/07/31 08:20:47 [0/0/0] [source garage] ready
2020/07/31 08:20:51 [0/0/0] [source garage] stopping since we're not requested anymore
2020/07/31 08:20:51 [0/0/0] [source back] stopping since we're not requested anymore
2020/07/31 08:20:51 [0/0/0] [source porch] stopping since we're not requested anymore
2020/07/31 08:20:51 [0/0/0] [source garage] not ready
2020/07/31 08:20:51 [0/0/0] [source porch] not ready
2020/07/31 08:20:51 [0/0/0] [source back] not ready
2020/07/31 08:20:51 [0/0/0] [source garage] stopped
2020/07/31 08:20:51 [0/0/0] [source back] stopped
2020/07/31 08:20:51 [0/0/0] [source porch] stopped
@aler9 aler9 added the bug Something isn't working label Jul 31, 2020
@aler9 aler9 closed this as completed in 4c97c88 Jul 31, 2020
@aler9
Copy link
Member

aler9 commented Jul 31, 2020

This is a regression fixed in v0.9.7 (out very soon), thanks.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2023

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants