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

Start Stop Record on demand via API #2387

Closed
moo-the-cow opened this issue Sep 21, 2023 · 7 comments
Closed

Start Stop Record on demand via API #2387

moo-the-cow opened this issue Sep 21, 2023 · 7 comments

Comments

@moo-the-cow
Copy link

Describe the feature

Hi,
currently the documentation on https://bluenviron.github.io/mediamtx/ is showing all the API commands.
Is there a chance to get a START and STOP to control recordings on demand?
It is a very common usecase in my opinion. I need to be able to control it without having to modifying the configuration. Thank you!

@moo-the-cow
Copy link
Author

moo-the-cow commented Sep 21, 2023

nevermind. I could control it via http://localhost:9997/v2/config/set it is still a weird way to do it. maybe the API should be reworked

@aler9
Copy link
Member

aler9 commented Sep 22, 2023

While it's possible to control control recording through the API, at the moment enabling/disabling recording on a running stream is not possible, since the stream gets restarted. In order to solve the issue, i've created a feature request here: #2395

@aler9
Copy link
Member

aler9 commented Sep 28, 2023

This has been fixed by #2434

@aler9
Copy link
Member

aler9 commented Oct 15, 2023

added in v1.2.0

@pavelsidla
Copy link

Hello i want to know how to enable/disable recording throught api.
I cannot find v2/config/set in documentation which is provided to api.
Can you tell me how to do it in current version?

I want to record stream from my camera only when i make api call and stop recording when i call this api too.
Thank you

@MasterShi
Copy link

@fotosidla There is a way to implement your demand, use /v3/config/paths/patch/{name} to switch

Copy link
Contributor

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 Aug 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants