Skip to content

Commit

Permalink
added new requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jun 5, 2024
1 parent da02235 commit 6478c63
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compress/api_restreamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,5 @@ func (o *compress) RestreamerHlsStart(request hlsBodyRequest) (*HlsResponse, err

func (o *compress) RestreamerHlsStop(request hlsBodyRequest) (*HlsResponse, error){
return nil, nil
}
}

23 changes: 23 additions & 0 deletions compress/model_restreamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" `
}

0 comments on commit 6478c63

Please sign in to comment.