aws / aws-sdk-js

AWS SDK for JavaScript in the browser and Node.js
https://aws.amazon.com/developer/language/javascript/
Apache License 2.0
7.6k stars 1.55k forks source link

How to get to the video is the conversion complete? #4579

Closed ch930410 closed 9 months ago

ch930410 commented 9 months ago

Describe the feature

How to get to the video is the conversion complete?

Use Case

mediaConverter.getQueue(
        {
          Name: process.env.MEDIA_CONVERT_QUEUE || 'Default',
        },
        (err, data) => {
          if (err) {
            res.send({ err });
          }
          if (!err) {
            res.send({ data });
          }
        }
      );

Proposed Solution

No response

Other Information

No response

Acknowledgements

SDK version used

2.1170.0

Environment details (OS name and version, etc.)

Browser

RanVaknin commented 9 months ago

Hi @ch930410 ,

I'm not sure how the code snippet you posted is related to the question you are asking?

To check on a status of a video conversion job, you would call getJob, and on the job returned there would be a status field. You can poll that value every x seconds to see if its value is equal to "COMPLETE".

An unrelated note, you marked that you are using version 2.1170.0, but we are on 2.1549.0 which is which is 379 releases behind main.

Thanks, Ran~

github-actions[bot] commented 9 months ago

This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.