From 6478c63814de60ad4c4f0f896caedf63e4b9315b Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Wed, 5 Jun 2024 11:51:07 +0200 Subject: [PATCH] added new requests --- compress/api_restreamer.go | 3 ++- compress/model_restreamer.go | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/compress/api_restreamer.go b/compress/api_restreamer.go index 3566fe4..05a38f9 100644 --- a/compress/api_restreamer.go +++ b/compress/api_restreamer.go @@ -131,4 +131,5 @@ func (o *compress) RestreamerHlsStart(request hlsBodyRequest) (*HlsResponse, err func (o *compress) RestreamerHlsStop(request hlsBodyRequest) (*HlsResponse, error){ return nil, nil -} \ No newline at end of file +} + diff --git a/compress/model_restreamer.go b/compress/model_restreamer.go index b49dc58..093b040 100644 --- a/compress/model_restreamer.go +++ b/compress/model_restreamer.go @@ -156,3 +156,26 @@ type stopPullRequest struct { InstanceName string `json:"instance_name" ` ProcessID string `json:"process_id" ` } + +// call restreamer api for generate vod from event +type generateVodRequest struct { + BaseModel + Category string `json:"category" ` + CustomerID *int `json:"customer_id" ` + Description string `json:"description" ` + EventID string `json:"event_id" ` + Instance string `json:"instance" ` + Location string `json:"location" ` + SkipMin string `json:"skip_min" ` + Tags string `json:"tags" ` + Title string `json:"title" ` + ThumbnailsNumber string `json:"thumbnails_number" ` + Protocol string `json:"protocol" ` +} + + +type eventsHistoryRequest struct { + BaseModel + StartFrom int `json:"start_from" ` + Amount int `json:"amount" ` +} \ No newline at end of file