0

How do you print the Job status of an elastic transcoder job with the following parameters in php

{Progressing, Completed, Warning, Error}

I have submitted the job and the video is transcoding. I'm retrieving the completed videos list through S3 Listing.

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Reaching-Out
  • 415
  • 6
  • 26

1 Answers1

0

Provided with jobId, you can query job status and print whatever you want:

$createResult = $transcoder->createJob($jobData);
$jobId = $createResult->get('Job')['Id'];

$readResult = $transcoder->readJob(['Id' => $jobId]);
$readResult->get('Job')['Status'];
Vitaly Chirkov
  • 1,692
  • 3
  • 17
  • 33