Skip to content

Commit

Permalink
Add stream pull struct (#56)
Browse files Browse the repository at this point in the history
* Add stream pull struct

* Update api.go

Co-authored-by: Victor Elias <victorgelias@gmail.com>
Signed-off-by: Max Holland <max@hollandhome.co.uk>

---------

Signed-off-by: Max Holland <max@hollandhome.co.uk>
Co-authored-by: Victor Elias <victorgelias@gmail.com>
  • Loading branch information
mjh1 and victorges committed Jan 31, 2024
1 parent 462ef3e commit b699993
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions api.go
Expand Up @@ -207,6 +207,17 @@ type (
RecordingStatus string `json:"recordingStatus,omitempty"` // ready, waiting
RecordingURL string `json:"recordingUrl,omitempty"`
Mp4Url string `json:"mp4Url,omitempty"`

Pull *StreamPull `json:"pull,omitempty"`
}

StreamPull struct {
Source string `json:"source"`
Headers map[string]string `json:"headers,omitempty"`
Location *struct {
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
} `json:"location,omitempty"`
}

// UserSession user's sessions
Expand Down

0 comments on commit b699993

Please sign in to comment.