-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add modal for alignment and latency config #34
Conversation
@@ -839,6 +850,46 @@ export async function startProduction( | |||
input_slot: source.input_slot | |||
}; | |||
}), | |||
production_settings: { | |||
...production.production_settings, | |||
pipelines: await Promise.all( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works? Nice!
Converted this PR to a draft as a different settings-button position will be needed with newest main version |
Noticed a bug if you added a source during a running production and opened its settings-modal, will update PR with that fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR:
Steps to do so:
Start a production, and click the settings button on the source card.
Set new values
On save: alignment_ms and latency is saved on the pipeline with the source's sourceId as a key. A PATCH request to update the stream's alignment with the new value is also done.
I also added error handeling in case the latency value is set to higher value than the alignment, since if that's the case it will not be possibly to start a production.
On stop and start, there are checks when each stream is created to see if the alignment/latency for that source on each respective pipeline and in that case that value is used, otherwise the pipeline's 'global' value is used.
Images
Settings button on source card:
Configuration modal with initial values
After a stop and start of the production, the new values that have been saved in the database are shown in the modal for that source:
Error handeling if latency > alignment: