Skip to content

Commit

Permalink
Add input video and request ID to Transcode API Task outputs (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko committed Apr 12, 2023
1 parent 4c756f9 commit 14d377e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pkg/data/task_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,17 @@ type TranscodeFileTaskOutputPath struct {
Path string `json:"path,omitempty"`
}

type InputVideo struct {
Duration float64 `json:"duration,omitempty"`
SizeBytes int64 `json:"size,omitempty"`
}

type TranscodeFileTaskOutput struct {
BaseUrl string `json:"baseUrl,omitempty"`
Hls *TranscodeFileTaskOutputPath `json:"hls,omitempty"`
Mp4 []TranscodeFileTaskOutputPath `json:"mp4,omitempty"`
BaseUrl string `json:"baseUrl,omitempty"`
Hls *TranscodeFileTaskOutputPath `json:"hls,omitempty"`
Mp4 []TranscodeFileTaskOutputPath `json:"mp4,omitempty"`
RequestID string `json:"request_id,omitempty"`
InputVideo *InputVideo `json:"input_video,omitempty"`
}

type UploadTaskOutput struct {
Expand Down

0 comments on commit 14d377e

Please sign in to comment.