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

feature request: add ability to play a file on repeat #5

Closed
chad-green opened this issue Dec 22, 2020 · 7 comments
Closed

feature request: add ability to play a file on repeat #5

chad-green opened this issue Dec 22, 2020 · 7 comments

Comments

@chad-green
Copy link

Just a suggestion, how hard would it be to add a way to loop a file through indefinitely? It would just repeat the file over and over.

@vzhn
Copy link
Owner

vzhn commented Dec 23, 2020

Definitely not hard. I'll try to implement it on weekend. Thank you for suggestion!

@vzhn
Copy link
Owner

vzhn commented Dec 25, 2020

Not on this weekend. Maybe next.
Merry Christmas!

@chad-green
Copy link
Author

chad-green commented Dec 25, 2020 via email

@sarim987
Copy link

Would love to see this feature as well!

@vzhn
Copy link
Owner

vzhn commented Feb 11, 2021

I definitely implement this feature on this weekend.

As a temporary workaround you could use procedural-generated video stream. It never ends. Like this: rtsp://localhost:8554/picture?picture.width=320&picture.height=240

vzhn added a commit that referenced this issue Feb 11, 2021
@vzhn
Copy link
Owner

vzhn commented Feb 11, 2021

Ok guys, the feature is implemented and it seems that it is working.

A new parameter was added to the config file: repeat: true

...
  file:
    class: Filesystem
    conf:
      repeat: true

It could be set globally in config file server.yaml, or locally, just for current connection with GET param, like this:
ffplay -rtsp_transport tcp rtsp://localhost:8554/file?repeat=true

Please check it out

@vzhn
Copy link
Owner

vzhn commented Feb 11, 2021

Release containing new feature: v0.5.1

@vzhn vzhn closed this as completed Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants