Add new parameter 'runOnReady' (#752)

This is called when a stream is ready, whether it is published or proxied.
It replaces 'runOnPublsh'.
This commit is contained in:
aler9
2022-01-19 22:50:32 +01:00
parent 8337a90b29
commit 49449eb5ad
7 changed files with 76 additions and 43 deletions

View File

@@ -125,8 +125,10 @@ func loadConfPathData(ctx *gin.Context) (interface{}, error) {
RunOnDemandRestart *bool `json:"runOnDemandRestart"`
RunOnDemandStartTimeout *conf.StringDuration `json:"runOnDemandStartTimeout"`
RunOnDemandCloseAfter *conf.StringDuration `json:"runOnDemandCloseAfter"`
RunOnPublish *string `json:"runOnPublish"`
RunOnPublishRestart *bool `json:"runOnPublishRestart"`
RunOnReady *string `json:"runOnReady"`
RunOnReadyRestart *bool `json:"runOnReadyRestart"`
RunOnPublish *string `json:"runOnPublish"` // deprecated, replaced by runOnReady
RunOnPublishRestart *bool `json:"runOnPublishRestart"` // deprecated, replaced by runOnReadyRestart
RunOnRead *string `json:"runOnRead"`
RunOnReadRestart *bool `json:"runOnReadRestart"`
}