Skip to content

Commit

Permalink
api: Create recordingSpec fields on stream/createstream (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Jun 7, 2024
1 parent 5d255cb commit 949d242
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand All @@ -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"`
Expand Down

0 comments on commit 949d242

Please sign in to comment.