Skip to content

Commit

Permalink
vod: Turn off /asset/transcode API testing (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges authored Feb 1, 2023
1 parent 5dc957e commit 5495a9d
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions internal/app/vodtester/vodtester_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,24 @@ func (vt *vodTester) Start(fileName string, vodImportUrl string, taskPollDuratio
return fmt.Errorf("error importing asset from url=%s: %w", vodImportUrl, err)
}

_, transcodeTask, err := vt.Lapi.TranscodeAsset(importAsset.ID, assetName, api.StandardProfiles[0])

if err != nil {
glog.Errorf("Error transcoding asset assetId=%s err=%v", importAsset.ID, err)
return fmt.Errorf("error transcoding asset assetId=%s: %w", importAsset.ID, err)
}

err = vt.CheckTaskProcessing(taskPollDuration, *transcodeTask)

if err != nil {
glog.Errorf("Error in transcoding task taskId=%s", transcodeTask.ID)
return fmt.Errorf("error in transcoding task taskId=%s: %w", transcodeTask.ID, err)
}
// TODO: Figure out a future for transcode task. These are broken with the
// newest files used for VOD testing to test playback, and I'm not sure if
// it's worth making sure that it keeps working as it uses the old
// task-runner pipeline anyway.
//
// _, transcodeTask, err := vt.Lapi.TranscodeAsset(importAsset.ID, assetName, api.StandardProfiles[0])

// if err != nil {
// glog.Errorf("Error transcoding asset assetId=%s err=%v", importAsset.ID, err)
// return fmt.Errorf("error transcoding asset assetId=%s: %w", importAsset.ID, err)
// }

// err = vt.CheckTaskProcessing(taskPollDuration, *transcodeTask)

// if err != nil {
// glog.Errorf("Error in transcoding task taskId=%s", transcodeTask.ID)
// return fmt.Errorf("error in transcoding task taskId=%s: %w", transcodeTask.ID, err)
// }

exportTask, err := vt.Lapi.ExportAsset(importAsset.ID)

Expand Down

0 comments on commit 5495a9d

Please sign in to comment.