Skip to content

Commit

Permalink
Support for thumbs vtt opt out (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 authored Feb 13, 2024
1 parent 18881f3 commit 9703dbc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions task/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,19 +701,22 @@ func isEncryptionEnabled(params api.UploadTaskParams) bool {
func uploadTaskOutputLocations(tctx *TaskContext) ([]OutputName, []clients.OutputLocation, error) {
playbackId := tctx.OutputAsset.PlaybackID
outURL := tctx.OutputOSObj.URL
var mp4 string
var mp4, thumbsEnabled string
if isRecording(tctx) {
mp4 = OUTPUT_ENABLED
} else {
mp4 = OUTPUT_ONLY_SHORT
}
if tctx.Task.Params.Upload.Thumbnails {
thumbsEnabled = OUTPUT_ENABLED
}

outputNames, outputLocations, err := outputLocations(
outURL,
outputs{
hls: out(OUTPUT_ENABLED, playbackId),
mp4: out(mp4, playbackId),
thumbnails: out(OUTPUT_ENABLED, playbackId),
thumbnails: out(thumbsEnabled, playbackId),
},
!isEncryptionEnabled(*tctx.Task.Params.Upload),
)
Expand Down

0 comments on commit 9703dbc

Please sign in to comment.