Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions clients/catalyst.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const (
type ClipStrategy struct {
StartTime int64 `json:"start_time,omitempty"`
EndTime int64 `json:"end_time,omitempty"`
Offset int64 `json:"offset,omitempty"`
PlaybackID string `json:"playback_id,omitempty"` // playback-id of asset to clip
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/golang/glog v1.1.2
github.com/julienschmidt/httprouter v1.3.0
github.com/livepeer/catalyst-api v0.1.2-0.20230925142340-c311569665b4
github.com/livepeer/go-api-client v0.4.10-0.20230926213058-6b6f4bf9bde0
github.com/livepeer/go-api-client v0.4.10-0.20231009083235-59b707bdf76d
github.com/livepeer/go-tools v0.3.2
github.com/livepeer/livepeer-data v0.7.5-0.20230927031152-b938ac1dc665
github.com/peterbourgon/ff v1.7.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ github.com/libp2p/go-netroute v0.2.0 h1:0FpsbsvuSnAhXFnCY0VLFbJOzaK0VnP0r1QT/o4n
github.com/libp2p/go-openssl v0.1.0 h1:LBkKEcUv6vtZIQLVTegAil8jbNpJErQ9AnT+bWV+Ooo=
github.com/livepeer/catalyst-api v0.1.2-0.20230925142340-c311569665b4 h1:UfiMdEDGa88yqYD9+i1+ldAex9Kf1+3jbq+wBrmZccM=
github.com/livepeer/catalyst-api v0.1.2-0.20230925142340-c311569665b4/go.mod h1:Ybiub5AGDrDfvyh1MWdIa551LAwhx/6lSpbQlgb1W1Q=
github.com/livepeer/go-api-client v0.4.10-0.20230926213058-6b6f4bf9bde0 h1:mVzmSN/dmYOtoaVhpfbDSF59quCLO6Dyvfm84z2RVqU=
github.com/livepeer/go-api-client v0.4.10-0.20230926213058-6b6f4bf9bde0/go.mod h1:Jdb+RI7JyzEZOHd1GUuKofwFDKMO/btTa80SdpUpYQw=
github.com/livepeer/go-api-client v0.4.10-0.20231009083235-59b707bdf76d h1:LRuDG38FxuCJwjd9aZNqBow+KCNgN8WevTRc9EbeflQ=
github.com/livepeer/go-api-client v0.4.10-0.20231009083235-59b707bdf76d/go.mod h1:Jdb+RI7JyzEZOHd1GUuKofwFDKMO/btTa80SdpUpYQw=
github.com/livepeer/go-tools v0.3.2 h1:5pOUrOmkkGbbcWnpCt2yrSD6cD85G4GcpO4B25NpMJM=
github.com/livepeer/go-tools v0.3.2/go.mod h1:qs31y68b3PQPmSr8nR8l5WQiIWI623z6pqOccqebjos=
github.com/livepeer/livepeer-data v0.7.5-0.20230927031152-b938ac1dc665 h1:EXlI922Fsv9lyIw1LQ7pZN6slCuYya8NQrCFWN8INg4=
Expand Down
2 changes: 2 additions & 0 deletions task/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func handleUploadVOD(p handleUploadVODParams) (*TaskHandlerOutput, error) {
clipStrategy = &clients.ClipStrategy{
StartTime: clipParams.ClipStrategy.StartTime,
EndTime: clipParams.ClipStrategy.EndTime,
Offset: clipParams.ClipStrategy.Offset,
PlaybackID: clipParams.ClipStrategy.PlaybackId,
}
} else {
Expand Down Expand Up @@ -265,6 +266,7 @@ func TaskClip(tctx *TaskContext) (*TaskHandlerOutput, error) {
clipStrategy: clients.ClipStrategy{
StartTime: params.ClipStrategy.StartTime,
EndTime: params.ClipStrategy.EndTime,
Offset: params.ClipStrategy.Offset,
PlaybackID: params.ClipStrategy.PlaybackId,
},
})
Expand Down