From 949d242a631bdd4c44eb023e6b033c055a4a42af Mon Sep 17 00:00:00 2001 From: Victor Elias Date: Fri, 7 Jun 2024 14:18:35 +0100 Subject: [PATCH] api: Create recordingSpec fields on stream/createstream (#69) --- api.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/api.go b/api.go index 1ab0802..55950f7 100644 --- a/api.go +++ b/api.go @@ -143,11 +143,13 @@ type ( // this is deprecated and Profiles should be used instead. Presets []string `json:"presets,omitempty"` Profiles []Profile `json:"profiles,omitempty"` - Record bool `json:"record,omitempty"` PlaybackPolicy *PlaybackPolicy `json:"playbackPolicy,omitempty"` - RecordObjectStoreId string `json:"recordObjectStoreId,omitempty"` - ObjectStoreId string `json:"objectStoreId,omitempty"` + Record bool `json:"record,omitempty"` + RecordObjectStoreId string `json:"recordObjectStoreId,omitempty"` + RecordingSpec *RecordingSpec `json:"recordingSpec,omitempty"` + + ObjectStoreId string `json:"objectStoreId,omitempty"` } PlaybackPolicy struct { @@ -201,6 +203,7 @@ type ( Multistream struct { Targets []MultistreamTargetRef `json:"targets,omitempty"` } `json:"multistream"` + RecordingSpec *RecordingSpec `json:"recordingSpec,omitempty"` // These can be present on parent stream objects if they are used to stream // directly to broadcasters (i.e. not using the streamKey through RTMP) @@ -214,6 +217,10 @@ type ( ProjectID string `json:"projectId,omitempty"` } + RecordingSpec struct { + Profiles *[]Profile `json:"profiles,omitempty"` + } + StreamPull struct { Source string `json:"source"` Headers map[string]string `json:"headers,omitempty"`