14 lines
746 B
Go
14 lines
746 B
Go
package api
|
|
|
|
// Video is the catalogue's copy of a video, as GET /api/videos/{id} serves it.
|
|
// It is deliberately not cms's video record of the same name: the catalogue
|
|
// publishes what a reader needs to show and play a video, and none of the
|
|
// ingestion detail — no storage key, no transcoding job id, no status, since
|
|
// a video that is not ready never reaches the catalogue at all.
|
|
type Video struct {
|
|
ID string `json:"id" example:"0f8fad5b-d9cb-469f-a165-70867728950e"`
|
|
Title string `json:"title" example:"The Evening Bulletin"`
|
|
PlaybackURL string `json:"playbackUrl" example:"https://d111111abcdef8.cloudfront.net/videos/abc123/index.m3u8"`
|
|
Categories []string `json:"categories" example:"documentary,news"`
|
|
}
|